make setting APPLICATION_SETTINGS file via environment variable optional
This commit is contained in:
parent
e8c1effd15
commit
f0be983a5a
|
@ -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'))
|
||||
|
|
Loading…
Reference in New Issue
Block a user