Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Sep 25, 2018
1 parent 7e3ba20 commit b758299
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ Usage

#. We need to add the configurations for `django-multisite <https://github.com/ecometrica/django-multisite>`_ :

* Replace SITE_ID value with the SiteID function::
* Replace SITE_ID value with the SiteID function::

from multisite import SiteID
SITE_ID = SiteID(default=1)

* Add ``multisite``, ``djangocms_multisite`` to ``INSTALLED_APPS``::
* Add ``multisite``, ``djangocms_multisite`` to ``INSTALLED_APPS``::

INSTALLED_APPS=[
...
'multisite',
'djangocms_multisite',
...
]
* Add those loders in the TEMPLATES setting::
* Add those loders in the TEMPLATES setting::

TEMPLATES = [
...
Expand All @@ -73,7 +73,7 @@ Usage
...
]

* For other settings (cache, etc.) check the `django-multisite <https://github.com/ecometrica/django-multisite>`_ page
* For other settings (cache, etc.) check the `django-multisite <https://github.com/ecometrica/django-multisite>`_ page

#. Add ``multisite.middleware.DynamicSiteMiddleware`` and ``djangocms_multisite.middleware.CMSMultiSiteMiddleware`` to ``MIDDLEWARE_CLASSES``. The order is important: ``multisite.middleware.DynamicSiteMiddleware`` must be applied before ``cms.middleware.utils.ApphookReloadMiddleware``, while ``djangocms_multisite.middleware.CMSMultiSiteMiddleware`` must be right after::

Expand Down

0 comments on commit b758299

Please sign in to comment.