mirror of
https://github.com/django/django.git
synced 2025-07-19 09:09:13 +00:00
[1.9.x] Fixed indenting in "Serving files in development" code example
Backport of 8fb3a2877bac1ecf0e5665389d60eab637d1622e from master
This commit is contained in:
parent
0e80ac4672
commit
0bae867cd2
@ -35,7 +35,7 @@ built-in handling for user-uploaded files, but you can have Django serve your
|
|||||||
url(r'^media/(?P<path>.*)$', serve, {
|
url(r'^media/(?P<path>.*)$', serve, {
|
||||||
'document_root': settings.MEDIA_ROOT,
|
'document_root': settings.MEDIA_ROOT,
|
||||||
}),
|
}),
|
||||||
]
|
]
|
||||||
|
|
||||||
Note, the snippet assumes your :setting:`MEDIA_URL` has a value of
|
Note, the snippet assumes your :setting:`MEDIA_URL` has a value of
|
||||||
``'/media/'``. This will call the :func:`~django.views.static.serve` view,
|
``'/media/'``. This will call the :func:`~django.views.static.serve` view,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user