diff gpp/urls.py @ 312:88b2b9cb8c1f

Fixing #142; cut over to the django.contrib.staticfiles app.
author Brian Neal <bgneal@gmail.com>
date Thu, 27 Jan 2011 02:56:10 +0000
parents 8fd4984d5c3b
children 0c18dfb1da1c
line wrap: on
line diff
--- a/gpp/urls.py	Thu Jan 20 04:40:14 2011 +0000
+++ b/gpp/urls.py	Thu Jan 27 02:56:10 2011 +0000
@@ -56,6 +56,6 @@
 
 
 if settings.DEBUG:
-   urlpatterns += patterns('',
-      (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
+   urlpatterns += patterns('django.contrib.staticfiles.views',
+      (r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}),
    )