From 702fa233a90a39fb0c08d2a27017bf8ba7454c1e Mon Sep 17 00:00:00 2001 From: Jasper Berghoef Date: Fri, 2 Jun 2017 11:52:31 +0200 Subject: [PATCH] Fixes line length and adds Middleware code example --- README.rst | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index cd41358..638a364 100644 --- a/README.rst +++ b/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 -------