7

Fixes line length and adds Middleware code example

This commit is contained in:
Jasper Berghoef
2017-06-02 11:52:31 +02:00
parent 7405c34252
commit 702fa233a9

View File

@ -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
-------