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',
...]`
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:
1. Add a new configuration - can used multiple for different sites on multisite.
![](https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/add_control.jpg)
image:: 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)
image:: https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/main_settings.jpg
3. Display Options
- Position
- Theme style
- Toggle type
- Close style
![](https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/display_options.jpg)
image:: https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/display_options.jpg
4. Text and Accessibility
![](https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/configure_accessibility.jpg)
image:: https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/configure_accessibility.jpg
5. Custom Settings
![](https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/custom_settings.jpg)
image:: https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/custom_settings.jpg
6. Pro and Pro_Multisite Settings
A series of settings for the paid Pro plugins, including:
- Custom text
- Custom formatting
![](https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/pro_settings_only.jpg)
image:: https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/pro_settings_only.jpg
7. 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.
![](https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/optional_cookie_control.jpg)
image:: https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/optional_cookie_control.jpg
## To Test
Use IE11's emulation to test this tool -
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',
...]`
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:
1. Add a new configuration - can used multiple for different sites on multisite.
![](https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/add_control.jpg)
image:: 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)
image:: https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/main_settings.jpg
3. Display Options
- Position
- Theme style
- Toggle type
- Close style
![](https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/display_options.jpg)
image:: https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/display_options.jpg
4. Text and Accessibility
![](https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/configure_accessibility.jpg)
image:: https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/configure_accessibility.jpg
5. Custom Settings
![](https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/custom_settings.jpg)
image:: https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/custom_settings.jpg
6. Pro and Pro_Multisite Settings
A series of settings for the paid Pro plugins, including:
- Custom text
- Custom formatting
![](https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/pro_settings_only.jpg)
image:: https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/pro_settings_only.jpg
7. 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.
![](https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/optional_cookie_control.jpg)
image:: https://raw.githubusercontent.com/mcldev/django-cookie-control/master/docs/images/optional_cookie_control.jpg
## 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
Close
Hashes for django_cookie_control-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 922e6d4e834e838b27e02d8227ee8cb1317472347ed090207447b6ab067cf93b |
|
MD5 | 609ddda0eea0aaebe2db5d75cf26ca99 |
|
BLAKE2b-256 | fbbb23ce3aed26ad88cdb7cfe97e253e32ec5531b62343c66f10f81a57c3027d |
Close
Hashes for django_cookie_control-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 219a5000f0445693e2652b16d3caab9e7e92e9fb4672461bbb7d0458d2bfaee9 |
|
MD5 | 4a8f4e2a709303800a4b06307449627c |
|
BLAKE2b-256 | 31ac42a9641710b95f8561bb837c23d532a768d14702b537790b947f42113cc1 |