diff --git a/main.py b/main.py index efdec4d..67b26f1 100644 --- a/main.py +++ b/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)