From 2c52dbbfecfaee3b08e87b8efc8c09f6021cd696 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 24 Jan 2016 00:49:33 +0100 Subject: Remove context_processor with single use If we need the variable only in a single view, we can simply supply this value for this single view. --- accounts/views/default/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'accounts/views') 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) -- cgit v1.2.3-1-g7c22