Add the olark feature flag to the default config and fix the usage of flask modules.
This commit is contained in:
parent
c20b04d072
commit
4d4f3b1c18
2 changed files with 8 additions and 14 deletions
19
app.py
19
app.py
|
@ -38,19 +38,10 @@ features.import_features(app.config)
|
||||||
|
|
||||||
Principal(app, use_sessions=False)
|
Principal(app, use_sessions=False)
|
||||||
|
|
||||||
login_manager = LoginManager()
|
login_manager = LoginManager(app)
|
||||||
login_manager.init_app(app)
|
mail = Mail(app)
|
||||||
|
storage = Storage(app)
|
||||||
mail = Mail()
|
userfiles = Userfiles(app)
|
||||||
mail.init_app(app)
|
analytics = Analytics(app)
|
||||||
|
|
||||||
storage = Storage()
|
|
||||||
storage.init_app(app)
|
|
||||||
|
|
||||||
userfiles = Userfiles()
|
|
||||||
userfiles.init_app(app)
|
|
||||||
|
|
||||||
stripe.api_key = app.config.get('STRIPE_SECRET_KEY', None)
|
stripe.api_key = app.config.get('STRIPE_SECRET_KEY', None)
|
||||||
|
|
||||||
analytics = Analytics()
|
|
||||||
analytics.init_app(app)
|
|
||||||
|
|
|
@ -134,3 +134,6 @@ class DefaultConfig(object):
|
||||||
|
|
||||||
# Feature Flag: Whether GitHub login is supported.
|
# Feature Flag: Whether GitHub login is supported.
|
||||||
FEATURE_GITHUB_LOGIN = True
|
FEATURE_GITHUB_LOGIN = True
|
||||||
|
|
||||||
|
# Feature flag, whether to enable olark chat
|
||||||
|
FEATURE_OLARK_CHAT = True
|
Reference in a new issue