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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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