kopia lustrzana https://github.com/wagtail/wagtail
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
rodzic
6e2b8c28d0
commit
f881420a98
|
@ -342,6 +342,7 @@ Contributors
|
||||||
* Aidarbek Suleimenov
|
* Aidarbek Suleimenov
|
||||||
* Matthew Linares
|
* Matthew Linares
|
||||||
* Asanka Lihiniyagoda
|
* Asanka Lihiniyagoda
|
||||||
|
* David Beitey
|
||||||
|
|
||||||
Translators
|
Translators
|
||||||
===========
|
===========
|
||||||
|
|
|
@ -47,6 +47,13 @@ Add a ``STATIC_ROOT`` setting, if your project does not have one already:
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
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:
|
Add a ``WAGTAIL_SITE_NAME`` - this will be displayed on the main dashboard of the Wagtail admin backend:
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue