make setting APPLICATION_SETTINGS file via environment variable optional

This commit is contained in:
Simon Pirkelmann 2022-02-04 22:41:55 +01:00
parent e8c1effd15
commit f0be983a5a

View File

@ -74,7 +74,7 @@ def create_super_admins(app, user_datastore):
def create_app():
app = Flask(__name__)
app.config.from_object('imaginaerraum_door_admin.default_app_config.DefaultConfig')
app.config.from_envvar('APPLICATION_SETTINGS')
app.config.from_envvar('APPLICATION_SETTINGS', silent=True)
token_file = Path(app.config.get('TOKEN_FILE'))