kopia lustrzana https://github.com/wagtail/wagtail
Add note about CurrentSiteMiddleware incompatibility
As per https://github.com/wagtail/wagtail/issues/2840#issuecomment-522697801pull/5548/head
rodzic
349a23b8d4
commit
6a1a46b612
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue