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 Distributions
Built Distribution
Hashes for django_cookie_consent_anm-0.2.6a0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab234d1940bc6e398bb33c27cf8da6675b8a22ae5c562fe260502cb0493b65c9 |
|
MD5 | 4a3ed4c930cd601b9d530b3c5dc629dc |
|
BLAKE2b-256 | 4c835c274243f0e5465e91e2290116c5ad06512dbed467056410e6e215834197 |