seltsames Session kram
This commit is contained in:
parent
f141e2be49
commit
2090725f40
1 changed files with 3 additions and 0 deletions
3
main.py
3
main.py
|
@ -1,6 +1,7 @@
|
|||
import queue
|
||||
from flask import Flask, render_template, request, make_response, session
|
||||
from flask_socketio import SocketIO #https://pythonprogramminglanguage.com/python-flask-websocket/
|
||||
from flask.ext.session import Session
|
||||
import sqlite3
|
||||
import time
|
||||
import atexit
|
||||
|
@ -13,8 +14,10 @@ c = conn.cursor()
|
|||
|
||||
app = Flask(__name__)
|
||||
key = str(uuid.uuid4().hex)
|
||||
SESSION_TYPE = 'redis'
|
||||
print(key)
|
||||
app.secret_key = key
|
||||
Session(app)
|
||||
socketio = SocketIO(app)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue