Add GDPR compliant cookie consent to your website.
Project description
Django GDPR solution
CookieConsent integration for Django Web Framework.
🚀️ 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
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
django-gdpr-solution-1.1.1.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for django-gdpr-solution-1.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f030d678a2b235774cb0611f5e019583214c153cdef75ca845d5b62227a22e |
|
MD5 | c3f26224da23ffd3a3122e4147c78365 |
|
BLAKE2b-256 | 0e6cdc245b920a60a6ef19645761601b0aa76d72388d673426d8965bc45f0524 |
Close
Hashes for django_gdpr_solution-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fed7785a1af7c760bbe0ffb176dfcff9c7ae3f0c3e6d907b61fcab80c2313485 |
|
MD5 | 170d2f323d7f949794c5e40bfa8ab45b |
|
BLAKE2b-256 | 90589682aee7ffb0244c6295e6f38baee4e128492bdeed14da14d894937bcbdf |