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
pip install django-monitor-consent
- Add
consent
toINSTALLED_APPS
- Set
CONSENT_TEXT
in your settings:
CONSENT_TEXT = "This computer system is provided only for authorized use..."
- 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.