From f881420a98a45303c767f28d761a1791e858da7c Mon Sep 17 00:00:00 2001 From: David Beitey Date: Thu, 31 Jan 2019 07:11:20 +0000 Subject: [PATCH] Add MEDIA_* settings to Django integration page (#5046) This change adds the required MEDIA_URL/MEDIA_ROOT settings to this documentation page, so the page outlines they are required and gives an example if they're not already configured. --- CONTRIBUTORS.rst | 1 + docs/getting_started/integrating_into_django.rst | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index da75267f6c..a634f5ceac 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -342,6 +342,7 @@ Contributors * Aidarbek Suleimenov * Matthew Linares * Asanka Lihiniyagoda +* David Beitey Translators =========== diff --git a/docs/getting_started/integrating_into_django.rst b/docs/getting_started/integrating_into_django.rst index 047c0223ce..649eae029a 100644 --- a/docs/getting_started/integrating_into_django.rst +++ b/docs/getting_started/integrating_into_django.rst @@ -47,6 +47,13 @@ Add a ``STATIC_ROOT`` setting, if your project does not have one already: .. code-block:: python STATIC_ROOT = os.path.join(BASE_DIR, 'static') + +Add ``MEDIA_ROOT`` and ``MEDIA_URL`` settings, if your project does not have these already: + +.. code-block:: python + + MEDIA_ROOT = os.path.join(BASE_DIR, 'media') + MEDIA_URL = '/media/' Add a ``WAGTAIL_SITE_NAME`` - this will be displayed on the main dashboard of the Wagtail admin backend: