Skip to main content

A Wagtail add-on for showing personalized content

Project description

Prism logo

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.

The segment dashboard view

Instructions

Wagtail Personalisation requires Wagtail 7.0+ and Django 5.2+

To install the package with pip:

pip install wagtail-personalisation

Next, include the wagtail_personalisation, 'wagtail_modeladmin' and wagtailfontawesomesvg apps in your project’s INSTALLED_APPS:

INSTALLED_APPS = [
    # ...
    'wagtail.contrib.modeladmin',  # Don't repeat if it's there already
    'wagtail_personalisation',
    'wagtailfontawesomesvg',
    # ...
]

Make sure that django.contrib.sessions.middleware.SessionMiddleware has been added in first, this is a prerequisite for this project.

MIDDLEWARE = [
    'django.contrib.sessions.middleware.SessionMiddleware',
    # ...
]

Documentation

You can find more information about installing, extending and using this module on Read the Docs.

Sandbox

To experiment with the package you can use the sandbox provided in this repository. To install this you will need to create and activate a virtualenv and then run make sandbox. This will start a fresh Wagtail install, with the personalisation module enabled, on http://localhost:8000 and http://localhost:8000/cms/. The superuser credentials are superuser@example.com with the password testing.

Contributing

Install

To make changes to this project, first clone this repository:

git clone https://github.com/wagtail-nest/wagtail-personalisation.git
cd wagtail-personalisation

With your preferred virtualenv activated, install testing dependencies:

Using pip
python -m pip install --upgrade pip>=21.3
python -m pip install -e .[test] -U

How to run tests

Now you can run tests as shown below:

tox

or, you can run them for a specific environment tox -e py314-dj60-wt74 or specific test tox -e py314-dj60-wt74 -- tests/unit/test_foo.py::test_bar.

Acknowledgements

This project is currently maintained by the Wagtail Nest team.

It was originally developed by Boris Besemer (@blurrah) and Jasper Berghoef (@jberghoef) for Lab Digital (https://labdigital.nl)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtail_personalisation-0.17.0.tar.gz (54.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wagtail_personalisation-0.17.0-py3-none-any.whl (78.3 kB view details)

Uploaded Python 3

File details

Details for the file wagtail_personalisation-0.17.0.tar.gz.

File metadata

  • Download URL: wagtail_personalisation-0.17.0.tar.gz
  • Upload date:
  • Size: 54.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wagtail_personalisation-0.17.0.tar.gz
Algorithm Hash digest
SHA256 a2f7cccddb9ad2b1450d35c023270cfab22799ee9cb70df4e7b51b1c28455872
MD5 2079dd108cc811c715227679c4671ed6
BLAKE2b-256 8b2856839e8700c3152b218660749abeca653b31d16b50f86763ab35108ddb83

See more details on using hashes here.

Provenance

The following attestation bundles were made for wagtail_personalisation-0.17.0.tar.gz:

Publisher: publish.yml on wagtail-nest/wagtail-personalisation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wagtail_personalisation-0.17.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wagtail_personalisation-0.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed012d09a2e306aa683ff5ccce1dd59df5a6101c74facb5053599b70d6670e71
MD5 df1a5e4bb1df2ea4a201ba62856149ef
BLAKE2b-256 c123eb209dfda0d3afdfc59f7bdd1737d2120bcf49688e13b3c84c52f00c833e

See more details on using hashes here.

Provenance

The following attestation bundles were made for wagtail_personalisation-0.17.0-py3-none-any.whl:

Publisher: publish.yml on wagtail-nest/wagtail-personalisation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page