# HG changeset patch # User Brian Neal # Date 1298239796 0 # Node ID d8b634e67043617ee4b49561209258ee3b62de4d # Parent 33f3d5987a96f6816b5f25e7f3eac38200f9c743 New scheme for serving media files in debug mode after updating django trunk. diff -r 33f3d5987a96 -r d8b634e67043 gpp/urls.py --- 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.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}), + urlpatterns += patterns('', + (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), )