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.6rc0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 514610c09f3bbb057f9e73894c1efba7a0a42e607bca336f3147111b4be91dd7 |
|
MD5 | 5fa19e8e725edd10dfa2420ed8020fbf |
|
BLAKE2b-256 | d1a131bef1223ed4c23660ed523eaf311e303d89ff8df0bf37cd044efc3a7397 |
Hashes for django_cookie_consent_pax-0.2.6rc0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91c68437e6612b24408b64fd74509c212a03d1136dae0a85e95fcd378c46eb9d |
|
MD5 | dcbb6c850c5f12ff825a5b229a1d37cf |
|
BLAKE2b-256 | e3e0fa6be20c48f232aa9f2e86a5d4069f96c8a2f5cb44df7f630b00f73e4704 |