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_consentto yourINSTALLED_APPS. -
Add
django.template.context_processors.requesttoTEMPLATE_CONTEXT_PROCESSORSif it is not already added. -
Include django-cookie-consent urls in
urls.py::url(r'^cookies/', include('cookie_consent.urls'))
-
Run
migratedjango management command.
Example app
::
cd tests && ./manage.py runserver
Username and password for admin are 'administrator', 'password'.
Metadata
Release files for django-cookie-consent-pax 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-cookie-consent-pax-0.2.6.tar.gz | 13.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_cookie_consent_pax-0.2.6-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 30.3 kB
Security for django-cookie-consent-pax 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.