Django cookie consent application
Project description
Django cookie consent
django-cookie-consent is a reusable application for managing various cookies and visitors consent for their use in Django project.
Support ranges from django 2.2 to 4.0 and python 3.6 to 3.9
Features:
-
cookies and cookie groups are stored in models for easy management through Django admin interface
-
support for both opt-in and opt-out cookie consent schemes
-
removing declined cookies (or non accepted when opt-in scheme is used)
-
logging user actions when they accept and decline various cookies
-
easy adding new cookies and seamlessly re-asking for consent for new cookies
Documentation
https://django-cookie-consent.readthedocs.org/en/latest/
Configuration
-
Add
cookie_consent
to yourINSTALLED_APPS
. -
Add
django.template.context_processors.request
toTEMPLATE_CONTEXT_PROCESSORS
if it is not already added. -
Include django-cookie-consent urls in
urls.py
::url(r'^cookies/', include('cookie_consent.urls'))
-
Run
migrate
django management command.
Example app
::
cd tests && ./manage.py runserver
Username and password for admin are 'administrator', 'password'.
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
Hashes for django-cookie-consent-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ab2bb523fadd5b187e045a8df2a8d4286a4beac27da8f3cdbac3dd6e48f9619 |
|
MD5 | 66e7c3c16d7ab49bb53abe4a3e6211a2 |
|
BLAKE2b-256 | b03d7e289b67128a38743536197a8d3ff040dc93c007a04b713f40a2c3c78fe9 |