aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/__init__.py b/app/views/__init__.py
index c99ca03..3abb7ee 100644
--- a/app/views/__init__.py
+++ b/app/views/__init__.py
@@ -25,6 +25,10 @@ from urllib.parse import urlparse
from sqlalchemy.sql.expression import func
cache = SimpleCache()
+@app.context_processor
+def inject_debug():
+ return dict(debug=app.debug)
+
@app.template_filter()
def throw(err):
raise Exception(err)