Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
324:33f3d5987a96 | 325:d8b634e67043 |
---|---|
55 name='haystack_search'), | 55 name='haystack_search'), |
56 ) | 56 ) |
57 | 57 |
58 | 58 |
59 if settings.DEBUG: | 59 if settings.DEBUG: |
60 urlpatterns += patterns('django.contrib.staticfiles.views', | 60 urlpatterns += patterns('', |
61 (r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}), | 61 (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), |
62 ) | 62 ) |