django-cookie-consent
Django cookie consent application
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It directly solves a common compliance need (cookie consent) with a Django-native approach. Use it if you need cookie consent management in a Django project and want database-backed, admin-editable cookie definitions.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django 4.2 or later and Python 3.10+; django-appconf must be installed as a runtime dependency.
- Low friction install with only two runtime dependencies (django and django-appconf).
- Actively maintained as of June 2026, with recent releases and a stable production status across Django 4.2 through 6.0.
License · maintenance · safety
BSD-2-Clause-first-lines (permissive) — BSD-2-Clause-first-lines is a permissive license, allowing commercial and private use with minimal restrictions; you must retain the license notice in distributions.
last release 2026-02-04 (191 days) · last repo commit 2026-06-14 · 269 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 76,958 downloads/mo, #14,570 on PyPI
Alternatives
Verify before relying
pip install django-cookie-consent
# In Django settings.py, add to INSTALLED_APPS:
# 'cookie_consent',
# Then migrate:
# python manage.py migrate
# Use in template:
# {% load cookie_consent %}
# {% cookie_consent_banner %}- Whether the package includes a pre-built frontend component (JavaScript/CSS) or requires custom UI implementation.
- Specifics on how cookie removal is enforced client-side versus server-side.
- Whether logging of user consent actions includes audit-trail capabilities for compliance documentation.
What it is and what it does
django-cookie-consent is a Django application that handles cookie consent workflows by storing cookie definitions and user consent choices in the database, accessible through Django admin. It supports both opt-in (users must accept before cookies are set) and opt-out (cookies are set unless rejected) consent schemes, and can remove declined cookies or non-accepted cookies depending on the scheme in use.
The package logs when users accept or decline cookies, making it straightforward to track consent history. It also handles re-consent flows when new cookies are added, prompting users to make fresh choices without losing their prior decisions. The core dependencies are django and django-appconf; it requires Python 3.10 or later and is tested against modern Django versions (4.2, 5.2, 6.0).
Use it for
- Implement GDPR-compliant cookie consent on a Django site with opt-in or opt-out workflows.
- Store and manage cookie definitions (analytics, marketing, functional) in Django admin for non-technical users.
- Log user consent decisions for audit and compliance reporting.
- Automatically re-prompt users when new cookies are added to the site.
- Remove or prevent setting of cookies that users have declined.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It directly solves a common compliance need (cookie consent) with a Django-native approach. Use it if you need cookie consent management in a Django project and want database-backed, admin-editable cookie definitions.
Install
django-cookie-consent on PyPI
Before you install
Low friction install with only two runtime dependencies (django and django-appconf). Actively maintained as of June 2026, with recent releases and a stable production status across Django 4.2 through 6.0.
Requires Django 4.2 or later and Python 3.10+; django-appconf must be installed as a runtime dependency.
License in practice
BSD-2-Clause-first-lines is a permissive license, allowing commercial and private use with minimal restrictions; you must retain the license notice in distributions.
Quickstart
pip install django-cookie-consent
# In Django settings.py, add to INSTALLED_APPS:
# 'cookie_consent',
# Then migrate:
# python manage.py migrate
# Use in template:
# {% load cookie_consent %}
# {% cookie_consent_banner %}
Verify before relying
- Whether the package includes a pre-built frontend component (JavaScript/CSS) or requires custom UI implementation.
- Specifics on how cookie removal is enforced client-side versus server-side.
- Whether logging of user consent actions includes audit-trail capabilities for compliance documentation.
Package facts
| License | BSD-2-Clause-first-lines permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesdjangodjango-appconf |
| Maintenance | Actively maintained 191 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 76,958 / month, #14,570 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: DjangoFramework :: Django :: 4.2Framework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: DevelopersOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: UnixProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules |
Evidence: django_cookie_consent-1.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django cookie consent”
- django-cookie-consentA Django application that manages cookie consent workflows, letting…
- edx-drf-extensionsProvides JWT authentication, CSRF token endpoints, and cross-cutting…
- identityProvides a high-level authentication and authorization API for Python…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also cookies · asgi-csrf · streamlit-cookies-controller · macaroonbakery · browser-cookie3 · pycookiecheat · django-click · starlette-csrf · edx-drf-extensions · cruft