7
This repository has been archived on 2023-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cavemanon-wagtail-personali…/README.rst
Jasper Berghoef 72aad87f01 Update to readme
Included modeladmin
2016-11-08 09:51:36 +01:00

34 lines
886 B
ReStructuredText

Wagtail personalisation module
==============================
Personalisation module for Wagtail. This project is still work in progresss.
Instructions
------------
To install the package with pip::
pip install wagtail-personalisation
Next, include the ``personalisation`` and ``wagtail.contrib.modeladmin`` app in your project's ``INSTALLED_APPS``:
.. code-block:: python
INSTALLED_APPS = [
# ...
'wagtail.contrib.modeladmin',
'personalisation',
# ...
]
Last but not least, add ``personalisation.middleware.SegmentMiddleware`` to your project's ``MIDDLEWARE``:
.. code-block:: python
MIDDLEWARE = [
# ...
'personalisation.middleware.SegmentMiddleware',
# ...
]
Make sure that ``django.contrib.sessions.middleware.SessionMiddleware`` has been added in first, this is a prerequisite for this project.