Django cookie consent application
Project description
django-cookie-consent is a reusable application for managing various cookies and visitors consent for their use in Django project.
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
Configuration
Add cookie_consent to your INSTALLED_APPS.
Add django.core.context_processors.request to TEMPLATE_CONTEXT_PROCESSORS if it is not already added.
Include django-cookie-consent urls in urls.py:
url(r'^cookies/', include('cookie_consent.urls'))
Run syncdb or migrate django management command.
Example app
cd tests && ./manage.py runserver
Username and password for admin are ‘admin’, ‘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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90b89f484bd150414a8ae57e80c9be05d9cfde73363d1c49f1589b4c0ea02ea5 |
|
MD5 | e2c8c92ba2f1b851f0fe7f15cb5714ec |
|
BLAKE2b-256 | c02c09ca9511a036e931361ba166d59f0eaa3451017046cfd3bfa24e93dceb19 |