A Wagtail add-on for showing personalized content
Project description
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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2f7cccddb9ad2b1450d35c023270cfab22799ee9cb70df4e7b51b1c28455872
|
|
| MD5 |
2079dd108cc811c715227679c4671ed6
|
|
| BLAKE2b-256 |
8b2856839e8700c3152b218660749abeca653b31d16b50f86763ab35108ddb83
|
Provenance
The following attestation bundles were made for wagtail_personalisation-0.17.0.tar.gz:
Publisher:
publish.yml on wagtail-nest/wagtail-personalisation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wagtail_personalisation-0.17.0.tar.gz -
Subject digest:
a2f7cccddb9ad2b1450d35c023270cfab22799ee9cb70df4e7b51b1c28455872 - Sigstore transparency entry: 1459078654
- Sigstore integration time:
-
Permalink:
wagtail-nest/wagtail-personalisation@37af266152610a3eed1d13514e2cda50cc6a989e -
Branch / Tag:
refs/tags/0.17.0 - Owner: https://github.com/wagtail-nest
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@37af266152610a3eed1d13514e2cda50cc6a989e -
Trigger Event:
release
-
Statement type:
File details
Details for the file wagtail_personalisation-0.17.0-py3-none-any.whl.
File metadata
- Download URL: wagtail_personalisation-0.17.0-py3-none-any.whl
- Upload date:
- Size: 78.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed012d09a2e306aa683ff5ccce1dd59df5a6101c74facb5053599b70d6670e71
|
|
| MD5 |
df1a5e4bb1df2ea4a201ba62856149ef
|
|
| BLAKE2b-256 |
c123eb209dfda0d3afdfc59f7bdd1737d2120bcf49688e13b3c84c52f00c833e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wagtail_personalisation-0.17.0-py3-none-any.whl -
Subject digest:
ed012d09a2e306aa683ff5ccce1dd59df5a6101c74facb5053599b70d6670e71 - Sigstore transparency entry: 1459078763
- Sigstore integration time:
-
Permalink:
wagtail-nest/wagtail-personalisation@37af266152610a3eed1d13514e2cda50cc6a989e -
Branch / Tag:
refs/tags/0.17.0 - Owner: https://github.com/wagtail-nest
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@37af266152610a3eed1d13514e2cda50cc6a989e -
Trigger Event:
release
-
Statement type: