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.
pull/5052/head
David Beitey 2019-01-31 07:11:20 +00:00 zatwierdzone przez Matt Westcott
rodzic 6e2b8c28d0
commit f881420a98
2 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -342,6 +342,7 @@ Contributors
* Aidarbek Suleimenov
* Matthew Linares
* Asanka Lihiniyagoda
* David Beitey
Translators
===========

Wyświetl plik

@ -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: