CookieConsent integration for Django Web Framework.
Install the package
pip install django-gdpr-solutionAdd 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 migrateLast step: load gdpr_solution and add templatetag on top of head tag on template
{% load gdpr_solution %}
<head>
...
{% gdpr_cookie_banner %}
...
</head>CookieConsentJs repository (orestbida/cookieconsent) for gdpr compliant cookie consent. For customize the cookie banner and all its functionality, go to the official repo.