From fb704558e260abb067b8299f16483cad4a5ee43e Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 23 Oct 2013 17:45:42 +0000 Subject: [PATCH] Change for Django 1.5.4, no more redirect_to svn: r23376 --- gramps/webapp/urls.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gramps/webapp/urls.py b/gramps/webapp/urls.py index a46587d0d..2f3c65c0a 100644 --- a/gramps/webapp/urls.py +++ b/gramps/webapp/urls.py @@ -62,7 +62,11 @@ urlpatterns += patterns('', # The rest will match views: urlpatterns += patterns('', (r'^$', main_page), - (r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', + ## Prior to django 1.5, use this: + ##(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', + ##{'url': '/styles/images/favicon.ico'}), + # Django 1.5.4: + (r'^favicon\.ico$', 'django.shortcuts.redirect', {'url': '/styles/images/favicon.ico'}), (r'^user/$', user_page), (r'^json/$', process_json_request),