Fixes line length and adds Middleware code example
This commit is contained in:
14
README.rst
14
README.rst
@ -17,7 +17,10 @@
|
||||
Wagtail Personalisation
|
||||
=======================
|
||||
|
||||
Wagtail Personalisation is a fully-featured personalisation module for `Wagtail CMS`_. It enables editors to create customised pages - or parts of pages - based on segments whose rules are configured directly in the admin interface.
|
||||
Wagtail Personalisation is a fully-featured personalisation module for
|
||||
`Wagtail CMS`_. It enables editors to create customised pages
|
||||
- or parts of pages - based on segments whose rules are configured directly
|
||||
in the admin interface.
|
||||
|
||||
.. _Wagtail CMS: http://wagtail.io/
|
||||
|
||||
@ -46,14 +49,21 @@ and ``wagtailfontawesome`` apps in your project's ``INSTALLED_APPS``:
|
||||
INSTALLED_APPS = [
|
||||
# ...
|
||||
'wagtail.contrib.modeladmin',
|
||||
'wagtailfontawesome',
|
||||
'wagtail_personalisation',
|
||||
'wagtailfontawesome',
|
||||
# ...
|
||||
]
|
||||
|
||||
Make sure that ``django.contrib.sessions.middleware.SessionMiddleware`` has
|
||||
been added in first, this is a prerequisite for this project.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
MIDDLEWARE = [
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
# ...
|
||||
]
|
||||
|
||||
Sandbox
|
||||
-------
|
||||
|
||||
|
Reference in New Issue
Block a user