Skip to content

Instantly share code, notes, and snippets.

@doismellburning
Created November 14, 2014 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doismellburning/27446fa68b603aba810e to your computer and use it in GitHub Desktop.
Save doismellburning/27446fa68b603aba810e to your computer and use it in GitHub Desktop.
from django.contrib.staticfiles.storage import staticfiles_storage
from django.views.generic.base import RedirectView
urlpatterns = patterns('',
rl(r'^favicon.ico$', RedirectView.as_view(url=staticfiles_storage.url('favicon.ico'), permanent=False), name="favicon"),
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment