django-monitor-consent

Django app for displaying a consent to monitoring banner


License
BSD-3-Clause
Install
pip install django-monitor-consent==1.1

Documentation

Django consent app

This app provides a configurable notice of consent banner for Django. It uses Bootstrap CSS classes including container, alert, and alert-secondary.

Installation

  1. pip install django-monitor-consent
  2. Add consent to INSTALLED_APPS
  3. Set CONSENT_TEXT in your settings:
CONSENT_TEXT = "This computer system is provided only for authorized use..."
  1. Include the banner template in your login page:
{% include "consent/banner.html" %}

The text is automatically wrapped in paragraph tags. Put two line endings in the text to create a new paragraph.