comparison 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
comparison
equal deleted inserted replaced
311:b1c39788e511 312:88b2b9cb8c1f
54 name='haystack_search'), 54 name='haystack_search'),
55 ) 55 )
56 56
57 57
58 if settings.DEBUG: 58 if settings.DEBUG:
59 urlpatterns += patterns('', 59 urlpatterns += patterns('django.contrib.staticfiles.views',
60 (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), 60 (r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}),
61 ) 61 )