We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60befdf commit d4edf42Copy full SHA for d4edf42
app.py
@@ -22,9 +22,9 @@
22
app.config['SESSION_PERMANENT'] = False
23
app.config['SESSION_USE_SIGNER'] = True
24
app.config['SESSION_KEY_PREFIX'] = 'trasho_'
25
-rediso = os.environ.get('REDIS_URI')
26
-redisp = os.environ.get('REDIS_PASS')
27
-redisport = os.environ.get('REDIS_PORT')
+rediso: str= os.environ.get('REDIS_URI')
+redisp: str= os.environ.get('REDIS_PASS')
+redisport: int= os.environ.get('REDIS_PORT')
28
app.config['SESSION_REDIS'] = redis.Redis(host=rediso,port=redisport,password=redisp)
29
Session(app)
30
requirements.txt
@@ -2,4 +2,4 @@ Flask==2.3.3
2
pymongo==4.6.1
3
flask_session==0.6.0
4
gunicorn==21.2.0
5
-redis=5.0.1
+redis==5.0.1
0 commit comments