Session key
This commit is contained in:
parent
1578fe14d2
commit
f3b00a84c8
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -14,7 +14,7 @@ c = conn.cursor()
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
key = str(uuid.uuid4().hex)
|
key = str(uuid.uuid4().hex)
|
||||||
SESSION_TYPE = 'redis'
|
app.config['SESSION_TYPE'] = 'redis'
|
||||||
print(key)
|
print(key)
|
||||||
app.secret_key = key
|
app.secret_key = key
|
||||||
Session(app)
|
Session(app)
|
||||||
|
|
Loading…
Reference in a new issue