heroku-python / dj-static

DEPRECATED - use WhiteNoise instead!
http://kennethreitz.org/introducing-dj-static/
BSD 2-Clause "Simplified" License
512 stars 71 forks source link

Allow using `dj-static` in view form #9

Closed cool-RR closed 11 years ago

cool-RR commented 11 years ago

I currently have this in my 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.

It would be nice if I could serve favicon.ico using dj-static. Can dj-static be made to be invokable as a view?

cool-RR commented 10 years ago

Why was this closed?