changeset 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 33f3d5987a96
children 5453aedf95fd
files gpp/urls.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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}),
    )