Skip to content

Commit

Permalink
passe ID_APP to app config
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoLechemia committed Jan 21, 2019
1 parent c3e67e7 commit f3126f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ def get_app(config, _app=None, with_external_mods=True):
# Bind app to DB
DB.init_app(app)

# Bind DB to app config
# pass parameters to the usershub authenfication sub-module, DONT CHANGE THIS
app.config['DB'] = DB
# pass the ID_APP to the submodule to avoid token conflict between app on the same server
app.config['ID_APP'] = app.config['ID_APPLICATION_GEONATURE']

with app.app_context():
from geonature.utils.logs import mail_handler
Expand Down

0 comments on commit f3126f3

Please # to comment.