diff --git a/docs/ref/views.txt b/docs/ref/views.txt index 8069264039..d0dc595464 100644 --- a/docs/ref/views.txt +++ b/docs/ref/views.txt @@ -35,7 +35,7 @@ built-in handling for user-uploaded files, but you can have Django serve your url(r'^media/(?P.*)$', serve, { 'document_root': settings.MEDIA_ROOT, }), - ] + ] Note, the snippet assumes your :setting:`MEDIA_URL` has a value of ``'/media/'``. This will call the :func:`~django.views.static.serve` view,