Skip to content

Instantly share code, notes, and snippets.

@nurv
Created February 22, 2012 17:24
Show Gist options
  • Save nurv/1886176 to your computer and use it in GitHub Desktop.
Save nurv/1886176 to your computer and use it in GitHub Desktop.
if settings.DEBUG:
# static files (images, css, javascript, etc.)
urlpatterns += patterns('',
(r'^media/(?P<path>.*)$', 'django.views.static.serve' , { 'document_root': settings.MEDIA_ROOT, 'show_indexes':True }))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment