Commit 2850fddf authored by nanahira's avatar nanahira

fix

parent 0621971b
...@@ -23,7 +23,8 @@ client = MongoClient(host=config.MONGO['host']) ...@@ -23,7 +23,8 @@ client = MongoClient(host=config.MONGO['host'])
app.secret_key = config.SECRET_KEY app.secret_key = config.SECRET_KEY
app.config['SESSION_TYPE'] = 'redis' app.config['SESSION_TYPE'] = 'redis'
app.cache = Cache(app, config=config.REDIS) app.cache = Cache()
app.cache.init_app(app, config=config.REDIS)
sess = Session() sess = Session()
sess.init_app(app) sess.init_app(app)
csrf = CSRFProtect(app) csrf = CSRFProtect(app)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment