Fixed #32419 -- Clarified URLconf in example of serving media files.

This commit is contained in:
Amankumar Singh 2021-02-05 20:03:53 +05:30 committed by GitHub
parent 8e90560aa8
commit 51637222b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ This is not suitable for production use! For some common deployment
strategies, see :doc:`/howto/static-files/deployment`.
For example, if your :setting:`MEDIA_URL` is defined as ``/media/``, you can do
this by adding the following snippet to your urls.py::
this by adding the following snippet to your :setting:`ROOT_URLCONF`::
from django.conf import settings
from django.conf.urls.static import static