You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

django-gdpr-solution

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-gdpr-solution

Add GDPR compliant cookie consent to your website.


Maintainers
1

Readme

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc