diff --git a/roac/__init__.py b/roac/__init__.py index 234fb43a675b55edf28738628ea529554f10acc5..fc2bde2f492f2a4ecaeaef94e33f3c5792e541d4 100644 --- a/roac/__init__.py +++ b/roac/__init__.py @@ -16,7 +16,9 @@ def create_app(test_config=None): app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///{}'.format(os.path.join(app.instance_path, 'db.sqlite')) app.config.from_pyfile('default_config.py') if not test_config: - app.config.from_pyfile(os.path.join(app.instance_path, 'config.py'), silent=True) + path = os.path.join(app.instance_path, 'config.py') + print('loading config: {}'.format(path)) + app.config.from_pyfile(path, silent=True) else: app.config.from_mapping(test_config) # OAuth2Session.fetch_token verifies that the passed URIs scheme (the scheme @@ -219,6 +221,7 @@ def create_app(test_config=None): return redirect(url_for('index')) os.makedirs(app.instance_path, exist_ok=True) + print('db uri: {}'.format(app.config['SQLALCHEMY_DATABASE_URI'])) with app.app_context(): db.create_all()