Closed cool-RR closed 11 years ago
I currently have this in my urlpatterns:
urlpatterns
url(r'^favicon.ico$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT, 'show_indexes': False, 'path': django.conf.settings.FAVICON_PATH,}),
This serves favicon.ico using Django's own static file serving.
favicon.ico
It would be nice if I could serve favicon.ico using dj-static. Can dj-static be made to be invokable as a view?
Why was this closed?
I currently have this in my
urlpatterns
:This serves
favicon.ico
using Django's own static file serving.It would be nice if I could serve
favicon.ico
using dj-static. Can dj-static be made to be invokable as a view?