require APPLICATION_SETTINGS to be set
This commit is contained in:
parent
74c6661f0e
commit
8d29fbe9cd
|
@ -78,7 +78,7 @@ def create_app():
|
||||||
app.config.from_object(
|
app.config.from_object(
|
||||||
'imaginaerraum_door_admin.default_app_config.DefaultConfig'
|
'imaginaerraum_door_admin.default_app_config.DefaultConfig'
|
||||||
)
|
)
|
||||||
app.config.from_envvar('APPLICATION_SETTINGS', silent=True)
|
app.config.from_envvar('APPLICATION_SETTINGS')
|
||||||
|
|
||||||
token_file = Path(app.config.get('TOKEN_FILE'))
|
token_file = Path(app.config.get('TOKEN_FILE'))
|
||||||
if not token_file.exists():
|
if not token_file.exists():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user