Skip to main content

Add GDPR compliant cookie consent to your website.

Project description

Django GDPR solution

CookieConsent integration for Django Web Framework.

PyPI PyPI - Downloads PyPI - License

🚀️ Quick start

Install the package

pip install django-gdpr-solution

Add gdpr_solution on INSTALLED_APPS

INSTALLED_APPS = [
  ...
  'gdpr_solution',
  ...
]

Include the urls

urlpatterns = [
  ...
  path('django-gdpr-solution/', include('gdpr_solution.urls')),
  ...
]

--> [OPTIONAL] Remember that you can change the name path of the url

Complete the installation with migrations

python manage.py makemigrations
python manage.py migrate

Last step: load gdpr_solution and add templatetag on top of head tag on template

{% load gdpr_solution %}

<head>
    ...
    {% gdpr_cookie_banner %}
    ...
</head>

📖 Dependencies

CookieConsentJs repository (orestbida/cookieconsent) for gdpr compliant cookie consent. For customize the cookie banner and all its functionality, go to the official repo.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-gdpr-solution-1.2.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

django_gdpr_solution-1.2.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file django-gdpr-solution-1.2.0.tar.gz.

File metadata

  • Download URL: django-gdpr-solution-1.2.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.13

File hashes

Hashes for django-gdpr-solution-1.2.0.tar.gz
Algorithm Hash digest
SHA256 5ecc5d3100cbb411205a74338b82d590ff93887926a36867f1e46990d339fda1
MD5 c1e9aceddc1288cf17fff3e6f39750dc
BLAKE2b-256 4026765191cfc993e11a195c926309bd30343a8ecd7bd40cbe623aef3dd4f570

See more details on using hashes here.

File details

Details for the file django_gdpr_solution-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_gdpr_solution-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6db6ee71eb13207caacdff2340f8d7f96ff3ebabd71f98aacdea80e3759e324f
MD5 0cc1b2b1e0ff7fc9cde157298f049ddc
BLAKE2b-256 fdb4f697e011806fa9bb2ec0f26fa7e7c475af2a68d9590054f95c4bd1ebe862

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page