Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am tekkeitserktok on github.
  • I am tekkeitserktok (https://keybase.io/tekkeitserktok) on keybase.
  • I have a public key ASCL-EmXuxTQ1einz0VI8fLq2YlPfGXY16Y1GMu_BMHzBQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am tekkeitserktok on github.
  • I am tekkeitserktok (https://keybase.io/tekkeitserktok) on keybase.
  • I have a public key ASCrvJKyIglKIiqqBxCP2RllI7yKfkA2B4hOnVGOSbBo4Qo

To claim this, I am signing this object:

@tekkeitserktok
tekkeitserktok / Chrome and Django favicon fix
Created February 4, 2016 14:29 — forked from iepathos/Chrome and Django favicon fix
Fix for Google Chrome favicon loading in Django. You may have noticed that Chrome has issues loading the appropriate favicon on Django if you have it in a different path other than just '/favicon.ico'. Firefox follows the template icon links no problem, but Chrome needs a little more help. I fixed this issue by adding this quick line to the urls…
#urls.py
from django.conf import settings
urlpatterns = patterns('',
url(r'^favicon.ico/$', lambda x: HttpResponseRedirect(settings.STATIC_URL+'ico/favicon.ico')), #google chrome favicon fix
)
# base.html
<link rel="shortcut icon" href="{{ STATIC_URL }}ico/favicon.ico">