diff options
author | 2018-03-29 23:05:52 +0100 | |
---|---|---|
committer | 2018-03-29 23:05:52 +0100 | |
commit | a9de731b325778d95cd7a5f12a67dd393dbf1d0f (patch) | |
tree | 138c9b4dfb3016e479def166272f46ec83e41b5e /pysite/base_route.py | |
parent | Fix broken countdown static file url (diff) |
Rewrite URLs in templates to use `url_for()`
Diffstat (limited to 'pysite/base_route.py')
-rw-r--r-- | pysite/base_route.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pysite/base_route.py b/pysite/base_route.py index c7d58f49..95bf3a03 100644 --- a/pysite/base_route.py +++ b/pysite/base_route.py @@ -6,7 +6,7 @@ from flask import Blueprint, Response, jsonify, render_template, url_for from flask.views import MethodView from werkzeug.exceptions import default_exceptions -from pysite.constants import DISCORD_OAUTH_REDIRECT, ErrorCodes +from pysite.constants import ErrorCodes from pysite.mixins import OauthMixin @@ -30,7 +30,6 @@ class BaseView(MethodView, OauthMixin): context["current_page"] = self.name context["view"] = self context["logged_in"] = self.logged_in - context["login_url"] = DISCORD_OAUTH_REDIRECT context["static_file"] = self._static_file return render_template(template_names, **context) |