Add documentation for WAGTAIL_REDIRECTS_FILE_STORAGE setting (#6114)

pull/6229/head
Martin Sandström 2020-06-07 08:31:53 +02:00 zatwierdzone przez Matt Westcott
rodzic 1ed501e5af
commit c8f493c095
1 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -534,3 +534,16 @@ Page locking
``WAGTAILADMIN_GLOBAL_PAGE_EDIT_LOCK`` can be set to ``True`` to prevent users
from editing pages that they have locked.
Redirects
=========
.. code-block:: python
WAGTAIL_REDIRECTS_FILE_STORAGE = 'tmp_file'
By default the the redirect importer keeps track of the uploaded file as a temp file, but on certain environments (load balanced/cloud environments), you cannot keep a shared file between environments. For those cases you can use the build in cache to store the file instead.
.. code-block:: python
WAGTAIL_REDIRECTS_FILE_STORAGE = 'cache'