I'm having an odd issue when porting my Django site from dev server to Heroku. I know I'm not supposed to use django to directly serve the static files, but I'm just testing out an idea for now.
I've tried using:
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns += staticfiles_urlpatterns()
as well as:
from django.conf import settings
urlpatterns += patterns(
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),)
but with either solution I my .css files get served just fine but my .png image files do not. Is there any reason these files would be different with respect to how Django and Heroku handle them?