Fix documentation for installation

This commit is contained in:
Iacopo Spalletti 2016-07-04 08:43:22 +02:00
parent bc119907f1
commit 1283d3139c
No known key found for this signature in database
GPG key ID: BDCBC2EB289F60C6

View file

@ -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',
... ...
] ]