Mercurial > public > madeira
diff mysite/urls.py @ 24:ead7bd49c9e0 django1.3
Changes to support Django 1.3
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 29 Mar 2011 01:51:10 +0000 |
parents | 0dcfcdf50c62 |
children | 903260593491 |
line wrap: on
line diff
--- a/mysite/urls.py Mon Mar 28 03:20:29 2011 +0000 +++ b/mysite/urls.py Tue Mar 29 01:51:10 2011 +0000 @@ -6,11 +6,12 @@ urlpatterns = patterns('', (r'^', include('mysite.band.urls')), + (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/', include(admin.site.urls)), (r'^photologue/', include('mysite.photologue.urls')), ) if settings.DEBUG: urlpatterns += patterns('', - (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), + (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), )