mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-16 19:21:10 +00:00
Add note about CurrentSiteMiddleware incompatibility
As per https://github.com/wagtail/wagtail/issues/2840#issuecomment-522697801
This commit is contained in:
parent
349a23b8d4
commit
6a1a46b612
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue