Add note about CurrentSiteMiddleware incompatibility

As per https://github.com/wagtail/wagtail/issues/2840#issuecomment-522697801
pull/5548/head
Matt Westcott 2019-08-20 19:49:43 +01:00 zatwierdzone przez Matt Westcott
rodzic 349a23b8d4
commit 6a1a46b612
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -42,6 +42,9 @@ Add the following entries to ``MIDDLEWARE``:
'wagtail.core.middleware.SiteMiddleware',
'wagtail.contrib.redirects.middleware.RedirectMiddleware',
.. note::
Wagtail is currently incompatible with projects using ``django.contrib.sites.middleware.CurrentSiteMiddleware``, as both this and ``wagtail.core.middleware.SiteMiddleware`` set the attribute ``request.site``.
Add a ``STATIC_ROOT`` setting, if your project does not have one already:
.. code-block:: python