summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/app.py b/app.py
index bea83f3..509ddcb 100644
--- a/app.py
+++ b/app.py
@@ -1,3 +1,5 @@
+import os
+
from flask import Flask
from flask_user import SQLAlchemyAdapter, UserManager
@@ -11,6 +13,8 @@ app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///development.db'
app.config['SECRET_KEY'] = 'this should definitely be changed to an ' \
'environment variable'
+if not os.environ.get('EDU_APP_ENV'):
+ app.debug = True
db.init_app(app)
with app.app_context():