Kaydet (Commit) 5edb6143 authored tarafından Gabriel Hurley's avatar Gabriel Hurley

Fixed #15310 -- Corrected a view path in the static files how to docs. Thanks to…

Fixed #15310 -- Corrected a view path in the static files how to docs. Thanks to Bradley Ayers for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15556 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 8c3416f4
...@@ -267,7 +267,7 @@ for user-uploaded files, but you can have Django serve your ...@@ -267,7 +267,7 @@ for user-uploaded files, but you can have Django serve your
if settings.DEBUG: if settings.DEBUG:
urlpatterns += patterns('', urlpatterns += patterns('',
url(r'^media/(?P<path>.*)$', 'django.views.static', { url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
'document_root': settings.MEDIA_ROOT, 'document_root': settings.MEDIA_ROOT,
}), }),
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment