From f6e641c6672112b5c871b32eed52e1cc1eb18c35 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 21 Jul 2011 12:53:48 -0400 Subject: [PATCH] Add /favicon.ico url (tried automatically by many browsers). --- insider/urls.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/insider/urls.py b/insider/urls.py index 8ed4c49..3ba3b2a 100644 --- a/insider/urls.py +++ b/insider/urls.py @@ -1,3 +1,4 @@ +from django.conf import settings from django.conf.urls.defaults import patterns, include, url from django.views.generic import DetailView, ListView @@ -29,4 +30,7 @@ urlpatterns = patterns('', # Uncomment the next line to enable the admin: url(r'^admin/', include(admin.site.urls), name='admin'), + + url(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', + kwargs={'url': settings.STATIC_URL + 'insider.ico'}), ) -- 2.26.2