Created
September 19, 2012 19:55
-
-
Save mikeyakymenko/3751852 to your computer and use it in GitHub Desktop.
Favicon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="shortcut icon" href="/path/to/favicon.ico" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
urlpatterns = patterns('', | |
(r'^favicon.ico$', 'django.views.static.serve', | |
{'document_root': settings.STATIC_ROOT, 'path': "favicon.ico"}), | |
) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.views.generic.base import TemplateView, RedirectView | |
urlpatterns = patterns('', | |
url(r'^favicon\.ico$', RedirectView.as_view(url='/path/to/favicon.ico')), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment