summaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/app.py b/app.py
index 4c93ccf..f06eb0b 100644
--- a/app.py
+++ b/app.py
@@ -43,6 +43,12 @@ def read_blacklist():
with open(app.config['USERNAME_BLACKLIST_FILE']) as f:
app.username_blacklist = f.read().split('\n')
+@app.context_processor
+def template_default_context():
+ return {
+ 'app': app
+ }
+
@app.route('/', methods=['GET', 'POST'])
@templated('index.html')