Mercurial > public > sg101
diff gpp/urls.py @ 325:d8b634e67043
New scheme for serving media files in debug mode after updating django trunk.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 20 Feb 2011 22:09:56 +0000 |
parents | 0c18dfb1da1c |
children | 2a03c69792d8 |
line wrap: on
line diff
--- a/gpp/urls.py Sun Feb 20 21:52:27 2011 +0000 +++ b/gpp/urls.py Sun Feb 20 22:09:56 2011 +0000 @@ -57,6 +57,6 @@ if settings.DEBUG: - urlpatterns += patterns('django.contrib.staticfiles.views', - (r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}), + urlpatterns += patterns('', + (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), )