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
``django-multisite`` middleware::
#. Add ``multisite.middleware.DynamicSiteMiddleware`` and ``djangocms_multisite.middleware.CMSMultiSiteMiddleware``
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 = [
...
'multisite.middleware.DynamicSiteMiddleware',
'cms.middleware.utils.ApphookReloadMiddleware',
'djangocms_multisite.middleware.CMSMultiSiteMiddleware',
...
]
@ -81,7 +84,7 @@ Usage
'www.example2.com': ('alias1.example2.com', 'alias2.example2.com',),
},
MULTISITE_CMS_FALLBACK='www.example.com'
#. Run ``python manage.py migrate``