Permalink
Browse files
Restore filesystem session
- Loading branch information...
Showing
with
5 additions
and
1 deletion.
-
+5
−1
conductor/app.py
|
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
from flask import Flask
|
|
|
from flask.ext.cors import CORS
|
|
|
from flask.ext.session import Session
|
|
|
from raven.contrib.flask import Sentry
|
|
|
from .blueprints import datastore, package, user, search
|
|
|
from .blueprints.logger import logger
|
|
|
@@ -22,7 +23,10 @@ def create(): |
|
|
Sentry(app, dsn=os.environ.get('SENTRY_DSN', ''))
|
|
|
|
|
|
# Session
|
|
|
app.secret_key = b'openspendingopenspending'
|
|
|
sess = Session()
|
|
|
app.config['SESSION_TYPE'] = 'filesystem'
|
|
|
app.config['SECRET_KEY'] = 'openspending rocks'
|
|
|
sess.init_app(app)
|
|
|
|
|
|
# Register blueprints
|
|
|
logger.info("Creating Datastore Blueprint")
|
|
|
|
0 comments on commit
c81ad26