<Location "/somepath/media/">
SetHandler None
</Location>
Спасибо.
<Location "/somepath/media/">
SetHandler None
</Location>
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(DIRNAME, "media"), 'show_indexes': False }),
Django documentation
The big, fat disclaimer
Using this method is inefficient and insecure. Do not use this in a production setting. Use this only for development.
For information on serving static files in an Apache production environment, see the Django mod_python documentation.
OZIONИ лучше так не делать.
еще можно в urls.py прописать:подробнее можно почитать тут http://docs.djangoproject.com/en/dev/howto/static-files/(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(DIRNAME, "media"), 'show_indexes': False }),