1
0
Fork 0
forked from bton/matekasse

seltsames Session kram

This commit is contained in:
2000-Trek 2023-06-09 22:39:09 +02:00
parent f141e2be49
commit 2090725f40

View file

@ -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)