Add the olark feature flag to the default config and fix the usage of flask modules.

This commit is contained in:
jakedt 2014-04-08 23:05:45 -04:00
parent c20b04d072
commit 4d4f3b1c18
2 changed files with 8 additions and 14 deletions

19
app.py
View file

@ -38,19 +38,10 @@ features.import_features(app.config)
Principal(app, use_sessions=False)
login_manager = LoginManager()
login_manager.init_app(app)
mail = Mail()
mail.init_app(app)
storage = Storage()
storage.init_app(app)
userfiles = Userfiles()
userfiles.init_app(app)
login_manager = LoginManager(app)
mail = Mail(app)
storage = Storage(app)
userfiles = Userfiles(app)
analytics = Analytics(app)
stripe.api_key = app.config.get('STRIPE_SECRET_KEY', None)
analytics = Analytics()
analytics.init_app(app)

View file

@ -134,3 +134,6 @@ class DefaultConfig(object):
# Feature Flag: Whether GitHub login is supported.
FEATURE_GITHUB_LOGIN = True
# Feature flag, whether to enable olark chat
FEATURE_OLARK_CHAT = True