summaryrefslogtreecommitdiffstats
path: root/middleware.py
diff options
context:
space:
mode:
authorSam Wenham <sam@wenhams.co.uk>2018-04-11 22:02:57 +0100
committerSam Wenham <sam@wenhams.co.uk>2018-04-11 22:02:57 +0100
commit789c33fcb6694544abb3991ccd3691a175216a55 (patch)
tree2cd893dd0bc7c99d41cb460f14d36f0c1e2e74ca /middleware.py
parent0ef4f7832c6b50c3921ff2629240404a77cdf33b (diff)
downloadtroggle-789c33fcb6694544abb3991ccd3691a175216a55.tar.gz
troggle-789c33fcb6694544abb3991ccd3691a175216a55.tar.bz2
troggle-789c33fcb6694544abb3991ccd3691a175216a55.zip
Upgrade to django 1.5, some functions have been changed
url in templates now requires quotes roung the first arg USE_TZ added
Diffstat (limited to 'middleware.py')
-rw-r--r--middleware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware.py b/middleware.py
index 15dd039..7c27500 100644
--- a/middleware.py
+++ b/middleware.py
@@ -19,7 +19,7 @@ class SmartAppendSlashMiddleware(object):
"""
# Check for a redirect based on settings.SMART_APPEND_SLASH
- host = http.get_host(request)
+ host = http.HttpRequest.get_host(request)
old_url = [host, request.path]
new_url = old_url[:]
# Append a slash if SMART_APPEND_SLASH is set and the resulting URL