Fix documentation for installation
This commit is contained in:
parent
bc119907f1
commit
1283d3139c
1 changed files with 6 additions and 3 deletions
|
@ -60,12 +60,15 @@ Usage
|
||||||
...
|
...
|
||||||
]
|
]
|
||||||
|
|
||||||
#. Add ``djangocms_multisite.middleware.CMSMultiSiteMiddleware`` to ``MIDDLEWARE_CLASSES`` after
|
#. Add ``multisite.middleware.DynamicSiteMiddleware`` and ``djangocms_multisite.middleware.CMSMultiSiteMiddleware``
|
||||||
``django-multisite`` middleware::
|
to ``MIDDLEWARE_CLASSES``; ``multisite.middleware.DynamicSiteMiddleware`` must be applied before
|
||||||
|
``cms.middleware.utils.ApphookReloadMiddleware``, while ``djangocms_multisite.middleware.CMSMultiSiteMiddleware``
|
||||||
|
must right after that::
|
||||||
|
|
||||||
MIDDLEWARE_CLASSES = [
|
MIDDLEWARE_CLASSES = [
|
||||||
...
|
...
|
||||||
'multisite.middleware.DynamicSiteMiddleware',
|
'multisite.middleware.DynamicSiteMiddleware',
|
||||||
|
'cms.middleware.utils.ApphookReloadMiddleware',
|
||||||
'djangocms_multisite.middleware.CMSMultiSiteMiddleware',
|
'djangocms_multisite.middleware.CMSMultiSiteMiddleware',
|
||||||
...
|
...
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue