summaryrefslogtreecommitdiffstats
path: root/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'accounts')
-rw-r--r--accounts/__init__.py6
-rw-r--r--accounts/views/default/__init__.py4
2 files changed, 3 insertions, 7 deletions
diff --git a/accounts/__init__.py b/accounts/__init__.py
index 35c0475..f5afc47 100644
--- a/accounts/__init__.py
+++ b/accounts/__init__.py
@@ -46,9 +46,3 @@ def read_blacklist():
if app.config.get('USERNAME_BLACKLIST_FILE'):
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
- }
diff --git a/accounts/views/default/__init__.py b/accounts/views/default/__init__.py
index e2db8b2..c2099d5 100644
--- a/accounts/views/default/__init__.py
+++ b/accounts/views/default/__init__.py
@@ -237,7 +237,9 @@ def logout():
@bp.route('/about')
@templated('about.html')
def about():
- return {}
+ return {
+ 'app': current_app,
+ }
@bp.app_errorhandler(403)