Skip to content

polesello/django-gdpr-solution

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Cookie policy

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 64.5%
  • HTML 35.5%