Skip to main content

A collection of tools one might use to make wagtail even better

Project description

This app will add some necessities to wagtail:

Install

pip install wagtail-extras

Add wagtailextras to your installed apps:

INSTALLED_APPS = [
    ...
    'wagtailextras',
    ...
]

For setup of individual parts, please continue below.

ObfuscateEmailAddressMiddleware

Transforms emailaddresses to ROT13-encoded strings to foil bots trying to harvest emailaddress

Setup

Add the following to the middleware:

MIDDLEWARE = [
    ...
    'wagtailextras.middleware.ObfuscateEmailAddressMiddleware',
    ...
]

ForceCsrfCookieMiddleware

Forces Django to create an CSRF token for you when you for example are using JavaScript forms.

Setup

Add the following to the middleware:

MIDDLEWARE = [
    ...
    'wagtailextras.middleware.ForceCsrfCookieMiddleware',
    ...
]

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-extras-0.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file wagtail-extras-0.2.tar.gz.

File metadata

File hashes

Hashes for wagtail-extras-0.2.tar.gz
Algorithm Hash digest
SHA256 76172482382c88d5d96c8cf69971f32268a19018c54e3cd73651b99b467ed796
MD5 be3f2e03e2cc5ce95b23de6681a3568c
BLAKE2b-256 d1d17921cfcb291d8e1a69633e881ad03bc38b7a3a617b09f2f302b16772acfd

See more details on using hashes here.

Supported by

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