Django app for displaying a consent to monitoring banner
Project description
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 after loading the template tag:
{% load consent_tags %}
{% consent_banner %}
The text is automatically wrapped in paragraph tags. Put two line endings in the text to create a new paragraph.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-monitor-consent-1.0.tar.gz
.
File metadata
- Download URL: django-monitor-consent-1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 740e73b8de36c5ce01e4d9e5e3bc670eae06516fb33a3a551277e23401bf27c8 |
|
MD5 | f135701e26eb9f125b4b41c95a597bc9 |
|
BLAKE2b-256 | 2392c4df8e6893f12f860839107a4dcfb8ee327dfeee16abdca0da0fb25058ad |
File details
Details for the file django_monitor_consent-1.0-py3-none-any.whl
.
File metadata
- Download URL: django_monitor_consent-1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24e7a161e0d3beb5d490b354349900450a3bb6e68f044fa295374d0000827954 |
|
MD5 | 5352662e927220efd6a13de49b10dcb8 |
|
BLAKE2b-256 | 31034fa49731466d2580764ace6e5bc360c859200e8778b3a6417c8db1ec8a0f |