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

django-cookie-consent-pax

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-cookie-consent-pax

Django cookie consent application


Maintainers
1

Readme

Build Status PyPI - License PyPI PyPI PyPI

django-cookie-consent is a reusable application for managing various cookies and visitors consent for their use in Django project.

support ranges from django 1.9 to 3.0 and python 2.7 to 3.7

Features:

  • cookies and cookie groups are stored in models for easy management through Django admin interface

  • support for both opt-in and opt-out cookie consent schemes

  • removing declined cookies (or non accepted when opt-in scheme is used)

  • logging user actions when they accept and decline various cookies

  • easy adding new cookies and seamlessly re-asking for consent for new cookies

Documentation

https://django-cookie-consent.readthedocs.org/en/latest/

Configuration

  1. Add cookie_consent to your INSTALLED_APPS.

  2. Add django.template.context_processors.request to TEMPLATE_CONTEXT_PROCESSORS if it is not already added.

  3. Include django-cookie-consent urls in urls.py::

    url(r'^cookies/', include('cookie_consent.urls'))

  4. Run migrate django management command.

Example app

::

cd tests && ./manage.py runserver

Username and password for admin are 'administrator', 'password'.

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