diff options
Diffstat (limited to 'uploader/__init__.py')
-rw-r--r-- | uploader/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uploader/__init__.py b/uploader/__init__.py index 3ee8aa0..e9875cf 100644 --- a/uploader/__init__.py +++ b/uploader/__init__.py @@ -34,7 +34,7 @@ def create_app(): app.config.from_envvar("QCAPP_SECRETS") # setup jinja2 symbols - app.jinja_env.globals.update(request_url=lambda : request.url) + app.add_template_global(lambda : request.url, name="request_url") # setup blueprints app.register_blueprint(base, url_prefix="/") |