From 789c33fcb6694544abb3991ccd3691a175216a55 Mon Sep 17 00:00:00 2001 From: Sam Wenham Date: Wed, 11 Apr 2018 22:02:57 +0100 Subject: Upgrade to django 1.5, some functions have been changed url in templates now requires quotes roung the first arg USE_TZ added --- middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'middleware.py') 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 -- cgit v1.2.3