mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 09:37:10 +00:00
Upgrade to django 1.5, some functions have been changed
url in templates now requires quotes roung the first arg USE_TZ added
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user