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 1.9 to 3.0 and python 2.7 to 3.7
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
Built Distribution
Hashes for django-cookie-consent-pax-0.2.6rc3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c61ae65721a409f0073a94a88868e2ebd131e8252c0274759c15c5dbe7d96d00 |
|
MD5 | 93c5c89f57f701b2301c199cbda94fb4 |
|
BLAKE2b-256 | 1a68b7b44009580442dd8b6c847c84986e005bdaa3c157a84a132382c14d1a4c |
Hashes for django_cookie_consent_pax-0.2.6rc3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91437f9965124f41368f56e989f9c022fe395d7f52e79bed3fa188d5ac6fff8e |
|
MD5 | 333c64120fe2d961682df0381e9da041 |
|
BLAKE2b-256 | dfe24d0b920ade2c3dce50e92224cbd6824b2c5e4622320eeec652d611817fa8 |