Django plugin to add and configure the Cookie Control by Civic UK
Project description
# django-cookie-control A Django plugin to integrate the Civic UK Cookie Control (https://www.civicuk.com/cookie-control)
The plugin is compatible with Django, DjangoCMS and Django/CMS multisite.
## To install Install the application via pip:
pip install django-cookie-control
Add ‘django_cookie_control’ to installed apps:
INSTALLED_APPS = [ … ‘django_cookie_control’, …]
Add/Edit the following to settings.py if required with required cookies: ` # DEFAULT if missing: COOKIE_CONTROL_REQUIRED_COOKIES = ['csrftoken','django_language','sessionid','django_privacy_mgmt_preferences','AWSALB'] `
Run or make migrations:
python.exe manage.py migrate
## To configure
For a full list of configuration settings see the Civic UK site, here:
https://www.civicuk.com/cookie-control/v8/documentation
Plugin configuration overview:
Add a new configuration - custom configuration for different sites via multisite.
![](https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/add_control.jpg)
2. Configure Main Settings - Site name - API key - Cookie Control product version: Community, Pro, Pro Multisite
![](https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/main_settings.jpg)
3. Display Options - Position - Theme style - Toggle type - Close style
Text and Accessibility
Custom Settings
6. Pro and Pro_Multisite Settings A series of settings for the paid Pro plugins, including: - Custom text - Custom formatting
Cookies
Necessary Cookies * A simple list of cookie names, including wildcards that are necessary for the site * A default list for Django, DjangoCMS, and AWS are already included.
Optional Cookies * Add an optional cookie or package of cookies that can be turned off for the site * Using separate functions On Accept or for On Revoke the cookies can be customised to be disable or enabled.
## To Test Use IE11’s emulation to test this tool -
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
Hashes for django_cookie_control-1.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2097c0553d92a3d4abe1c930dc36a815ea6f93e711e75f8b9b9dd45931ee6a3 |
|
MD5 | d1512d586d54718db232e6c3a01b4f0a |
|
BLAKE2b-256 | 5236514395a81b42c7bc761e9b9c94f206371ae7c9103401bc4bfe270e30898d |
Hashes for django_cookie_control-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84f0500a8992fcd2c0ca240af9175b688cb6e9c87e7e29c590239fa9d65c090c |
|
MD5 | 1976d81775570bd2d75e25898ed9e9be |
|
BLAKE2b-256 | 40f7b9c02d47ed00d913c5503fca904afd1f4927bfa2f8235d7bf0fef6f43bb1 |