django-cookie-consent 0.8.0__py3-none-any.whl → 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cookie_consent/__init__.py +1 -1
- cookie_consent/admin.py +32 -4
- cookie_consent/cache.py +13 -8
- cookie_consent/conf.py +21 -13
- cookie_consent/forms.py +50 -0
- cookie_consent/middleware.py +7 -6
- cookie_consent/migrations/0001_initial.py +2 -1
- cookie_consent/migrations/0003_alter_cookiegroup_varname.py +2 -2
- cookie_consent/migrations/0004_cookie_natural_key.py +0 -1
- cookie_consent/models.py +30 -20
- cookie_consent/processor.py +77 -0
- cookie_consent/py.typed +0 -0
- cookie_consent/static/cookie_consent/cookiebar.module.js +8 -3
- cookie_consent/static/cookie_consent/cookiebar.module.js.map +2 -2
- cookie_consent/templates/cookie_consent/_cookie_group.html +4 -2
- cookie_consent/templatetags/__init__.py +0 -1
- cookie_consent/templatetags/cookie_consent_tags.py +25 -116
- cookie_consent/urls.py +3 -25
- cookie_consent/util.py +87 -119
- cookie_consent/views.py +46 -40
- django_cookie_consent-1.0.0.dist-info/METADATA +96 -0
- django_cookie_consent-1.0.0.dist-info/RECORD +31 -0
- {django_cookie_consent-0.8.0.dist-info → django_cookie_consent-1.0.0.dist-info}/WHEEL +1 -1
- cookie_consent/static/cookie_consent/cookiebar.js +0 -67
- django_cookie_consent-0.8.0.dist-info/METADATA +0 -125
- django_cookie_consent-0.8.0.dist-info/RECORD +0 -30
- django_cookie_consent-0.8.0.dist-info/licenses/AUTHORS +0 -14
- {django_cookie_consent-0.8.0.dist-info → django_cookie_consent-1.0.0.dist-info}/licenses/LICENSE +0 -0
- {django_cookie_consent-0.8.0.dist-info → django_cookie_consent-1.0.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: django-cookie-consent
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Django cookie consent application
|
|
5
|
+
Author-email: Informatika Mihelac <bmihelac@mihelac.org>
|
|
6
|
+
License-Expression: BSD-2-Clause-first-lines
|
|
7
|
+
Project-URL: Documentation, https://django-cookie-consent.readthedocs.io/en/latest/
|
|
8
|
+
Project-URL: Changelog, https://github.com/django-commons/django-cookie-consent/blob/main/docs/changelog.rst
|
|
9
|
+
Project-URL: Bug Tracker, https://github.com/django-commons/django-cookie-consent/issues
|
|
10
|
+
Project-URL: Source Code, https://github.com/django-commons/django-cookie-consent
|
|
11
|
+
Keywords: cookies,cookie-consent,cookie bar
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Framework :: Django
|
|
14
|
+
Classifier: Framework :: Django :: 4.2
|
|
15
|
+
Classifier: Framework :: Django :: 5.2
|
|
16
|
+
Classifier: Framework :: Django :: 6.0
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: Operating System :: Unix
|
|
19
|
+
Classifier: Operating System :: MacOS
|
|
20
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
21
|
+
Classifier: Operating System :: OS Independent
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
28
|
+
Requires-Python: >=3.10
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Requires-Dist: django>=4.2
|
|
32
|
+
Requires-Dist: django-appconf
|
|
33
|
+
Provides-Extra: tests
|
|
34
|
+
Requires-Dist: pytest; extra == "tests"
|
|
35
|
+
Requires-Dist: pytest-cov; extra == "tests"
|
|
36
|
+
Requires-Dist: pytest-django; extra == "tests"
|
|
37
|
+
Requires-Dist: pytest-playwright; extra == "tests"
|
|
38
|
+
Requires-Dist: hypothesis; extra == "tests"
|
|
39
|
+
Requires-Dist: tox; extra == "tests"
|
|
40
|
+
Requires-Dist: ruff; extra == "tests"
|
|
41
|
+
Provides-Extra: docs
|
|
42
|
+
Requires-Dist: sphinx; extra == "docs"
|
|
43
|
+
Requires-Dist: sphinx-rtd-theme; extra == "docs"
|
|
44
|
+
Provides-Extra: release
|
|
45
|
+
Requires-Dist: bump-my-version; extra == "release"
|
|
46
|
+
Dynamic: license-file
|
|
47
|
+
|
|
48
|
+
Django cookie consent
|
|
49
|
+
=====================
|
|
50
|
+
|
|
51
|
+
Manage cookie information and let visitors give or reject consent for them.
|
|
52
|
+
|
|
53
|
+

|
|
54
|
+
[![Build status][badge:GithubActions:CI]][GithubActions:CI]
|
|
55
|
+
[![Code Quality][badge:GithubActions:CQ]][GithubActions:CQ]
|
|
56
|
+
[![Code style: ruff][badge:ruff]][ruff]
|
|
57
|
+
[![Test coverage][badge:codecov]][codecov]
|
|
58
|
+
[![Documentation][badge:docs]][docs]
|
|
59
|
+
|
|
60
|
+

|
|
61
|
+

|
|
62
|
+
[![PyPI version][badge:pypi]][pypi]
|
|
63
|
+
[![NPM version][badge:npm]][npm]
|
|
64
|
+
|
|
65
|
+
**Features**
|
|
66
|
+
|
|
67
|
+
* cookies and cookie groups are stored in models for easy management
|
|
68
|
+
through Django admin interface
|
|
69
|
+
* support for both opt-in and opt-out cookie consent schemes
|
|
70
|
+
* removing declined cookies (or non accepted when opt-in scheme is used)
|
|
71
|
+
* logging user actions when they accept and decline various cookies
|
|
72
|
+
* easy adding new cookies and seamlessly re-asking for consent for new cookies
|
|
73
|
+
|
|
74
|
+
Documentation
|
|
75
|
+
-------------
|
|
76
|
+
|
|
77
|
+
The documentation is hosted on [readthedocs][docs] and contains all instructions
|
|
78
|
+
to get started.
|
|
79
|
+
|
|
80
|
+
Alternatively, if the documentation is not available, you can consult or build the docs
|
|
81
|
+
from the `docs` directory in this repository.
|
|
82
|
+
|
|
83
|
+
[GithubActions:CI]: https://github.com/django-commons/django-cookie-consent/actions?query=workflow%3A%22Run+CI%22
|
|
84
|
+
[badge:GithubActions:CI]: https://github.com/django-commons/django-cookie-consent/workflows/Run%20CI/badge.svg
|
|
85
|
+
[GithubActions:CQ]: https://github.com/django-commons/django-cookie-consent/actions?query=workflow%3A%22Code+quality+checks%22
|
|
86
|
+
[badge:GithubActions:CQ]: https://github.com/django-commons/django-cookie-consent/workflows/Code%20quality%20checks/badge.svg
|
|
87
|
+
[ruff]: https://github.com/astral-sh/ruff
|
|
88
|
+
[badge:ruff]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
|
|
89
|
+
[codecov]: https://codecov.io/gh/django-commons/django-cookie-consent
|
|
90
|
+
[badge:codecov]: https://codecov.io/gh/django-commons/django-cookie-consent/branch/main/graph/badge.svg
|
|
91
|
+
[docs]: https://django-cookie-consent.readthedocs.io/en/latest/?badge=latest
|
|
92
|
+
[badge:docs]: https://readthedocs.org/projects/django-cookie-consent/badge/?version=latest
|
|
93
|
+
[pypi]: https://pypi.org/project/django-cookie-consent/
|
|
94
|
+
[badge:pypi]: https://img.shields.io/pypi/v/django-cookie-consent.svg
|
|
95
|
+
[npm]: https://www.npmjs.com/package/django-cookie-consent
|
|
96
|
+
[badge:npm]: https://img.shields.io/npm/v/django-cookie-consent
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
cookie_consent/__init__.py,sha256=J-j-u0itpEFT6irdmWmixQqYMadNl1X91TxUmoiLHMI,22
|
|
2
|
+
cookie_consent/admin.py,sha256=Xn4NJG9E_C4cHlhV0Cee5tfvrvPHwtLfGnLZIvB_DLE,1983
|
|
3
|
+
cookie_consent/apps.py,sha256=nldd3hZnNChnrajmCD3crvxFfieWgLi625grNTEVYis,248
|
|
4
|
+
cookie_consent/cache.py,sha256=MIO08f12RIuH6PQ6DJ0brYU83XLiE_jr15O4a50EZy8,1753
|
|
5
|
+
cookie_consent/conf.py,sha256=adgX8lwZxilBv4QNUTqgjq8RxWFVsTQj-Xeb57I0eeE,917
|
|
6
|
+
cookie_consent/forms.py,sha256=T2gXTwfanJA-IaslnqESVE3NZ3S0KPEuaXD69eE5RAQ,1519
|
|
7
|
+
cookie_consent/middleware.py,sha256=Z0CavPxHZntnrxb9rr27-lzJtzBbj4wc-_Xlh5YqZBg,2105
|
|
8
|
+
cookie_consent/models.py,sha256=322BuzMhWgrwW9bwkb8opv_SBnKL6K6VVHqv8_FKep0,6185
|
|
9
|
+
cookie_consent/processor.py,sha256=Vl7LO9HdP0vPzrIcmWMvlrTqJKvqL93NFDTzFRrISBI,2667
|
|
10
|
+
cookie_consent/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
cookie_consent/urls.py,sha256=X-OHDKbK-w6bnnxDCuytc8-tHwwCPBNQ2hq6hei8JpE,510
|
|
12
|
+
cookie_consent/util.py,sha256=hhNmrpTj6Cpn0MRwIw9juR9A7zxmJTlmhsiytNc2ftg,5252
|
|
13
|
+
cookie_consent/views.py,sha256=1d09pCGffGvVltVKmBYcv5vUJ_cpmSSR6vtQ8W8DGeU,3742
|
|
14
|
+
cookie_consent/fixtures/common_cookies.json,sha256=iOEeMtZhERoeoxBz5Kj-Mo_XOUk5F1ljNon4w2odBJo,2449
|
|
15
|
+
cookie_consent/migrations/0001_initial.py,sha256=euibMpY4x6gnVZnCe2eabXpAQ_b7N3DsqfgDSjtglbQ,4215
|
|
16
|
+
cookie_consent/migrations/0002_auto__add_logitem.py,sha256=rZ_kkXI3eij3k6PiGP5CsA41psENNZBbMD0qwUxBBTM,1633
|
|
17
|
+
cookie_consent/migrations/0003_alter_cookiegroup_varname.py,sha256=bDaCobgay6-Z4sPM7aSmTpsV7gK9JtUR6rE4WRb8Hho,899
|
|
18
|
+
cookie_consent/migrations/0004_cookie_natural_key.py,sha256=AJU2q_wVio7JuMFJqHT_WDGY9MCxvGeQrEDYDqZVq_4,465
|
|
19
|
+
cookie_consent/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
|
+
cookie_consent/static/cookie_consent/cookiebar.module.js,sha256=JlCNAvW8ZWZx2m6EgEct1-pJ1xn3sp3pOo8V8i8T7T4,5812
|
|
21
|
+
cookie_consent/static/cookie_consent/cookiebar.module.js.map,sha256=tIjDimt1Ya50XH-0wXhTWbexU1FzIl8FDW1xPoH2q-Y,14894
|
|
22
|
+
cookie_consent/templates/cookie_consent/_cookie_group.html,sha256=C4GCuNF8H5DN8nDsSH6dsuzYbDf2UDKE9WCMq1E1PQE,1632
|
|
23
|
+
cookie_consent/templates/cookie_consent/base.html,sha256=ghOQ9vqSzKG32LfSQmj5xTF1PBs-SDtQEcOC1wjAemQ,85
|
|
24
|
+
cookie_consent/templates/cookie_consent/cookiegroup_list.html,sha256=PMO9iLxQrgRpQGLC0stlDamMonc3tLS3o5PWPF378Zg,308
|
|
25
|
+
cookie_consent/templatetags/__init__.py,sha256=-JIt3g1eBf4bVQNNQd4JBeQNA7o0LK0W9tYKKX_r5s8,22
|
|
26
|
+
cookie_consent/templatetags/cookie_consent_tags.py,sha256=GfuCE90XQ4SSLkryqM0d-hW0iX3vgNEVIGye8p_0jks,2453
|
|
27
|
+
django_cookie_consent-1.0.0.dist-info/licenses/LICENSE,sha256=ZZi-io1uazO5jpDoNJScUfjeVI2dEzvDPOcyFhU0KYw,1349
|
|
28
|
+
django_cookie_consent-1.0.0.dist-info/METADATA,sha256=kGlgpGmxc-7KOTq3HOK5HhDjYnlqhnhzkJzCggS-3Ps,4618
|
|
29
|
+
django_cookie_consent-1.0.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
30
|
+
django_cookie_consent-1.0.0.dist-info/top_level.txt,sha256=wD8Ix58rJguYeYfils_Z40QfVybiRYb1vwRNm09HN4M,15
|
|
31
|
+
django_cookie_consent-1.0.0.dist-info/RECORD,,
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
function evalXCookieConsent(script) {
|
|
2
|
-
var src = script.getAttribute("src")
|
|
3
|
-
if (src) {
|
|
4
|
-
var newScript = document.createElement('script');
|
|
5
|
-
newScript.src = src;
|
|
6
|
-
document.getElementsByTagName("head")[0].appendChild(newScript);
|
|
7
|
-
} else {
|
|
8
|
-
eval(script.innerHTML);
|
|
9
|
-
}
|
|
10
|
-
script.remove();
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function lecacyShowCookieBar (options) {
|
|
14
|
-
const defaults = {
|
|
15
|
-
content: '',
|
|
16
|
-
cookie_groups: [],
|
|
17
|
-
|
|
18
|
-
cookie_decline: null, // set cookie_consent decline on client immediately
|
|
19
|
-
beforeDeclined: null
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const opts = Object.assign(defaults, options);
|
|
23
|
-
|
|
24
|
-
const wrapper = document.createElement('div');
|
|
25
|
-
wrapper.innerHTML= opts.content;
|
|
26
|
-
const content = wrapper.firstChild;
|
|
27
|
-
|
|
28
|
-
const body = document.querySelector('body');
|
|
29
|
-
body.appendChild(content);
|
|
30
|
-
body.classList.add('with-cookie-bar');
|
|
31
|
-
|
|
32
|
-
document
|
|
33
|
-
.querySelector(".cc-cookie-accept", content)
|
|
34
|
-
.addEventListener('click', (e) => {
|
|
35
|
-
e.preventDefault();
|
|
36
|
-
fetch(e.target.getAttribute("href"), {method: "POST"})
|
|
37
|
-
.then(() => {
|
|
38
|
-
content.style.display = "none";
|
|
39
|
-
body.classList.remove('with-cookie-bar');
|
|
40
|
-
scripts = document.querySelectorAll("script[type='x/cookie_consent']");
|
|
41
|
-
scripts.forEach( (script) => {
|
|
42
|
-
if (cookie_groups.indexOf(script.getAttribute('data-varname')) != -1) {
|
|
43
|
-
evalXCookieConsent(script);
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
})
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
document
|
|
50
|
-
.querySelector(".cc-cookie-decline", content)
|
|
51
|
-
.addEventListener('click', (e) => {
|
|
52
|
-
e.preventDefault();
|
|
53
|
-
if (typeof opts.beforeDeclined === "function") {
|
|
54
|
-
opts.beforeDeclined();
|
|
55
|
-
}
|
|
56
|
-
fetch(e.target.getAttribute("href"), {method: "POST"})
|
|
57
|
-
.then(() => {
|
|
58
|
-
content.style.display = "none";
|
|
59
|
-
body.classList.remove('with-cookie-bar');
|
|
60
|
-
if (opts.cookie_decline) {
|
|
61
|
-
document.cookie = opts.cookie_decline;
|
|
62
|
-
}
|
|
63
|
-
})
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
window.legacyShowCookieBar = window.showCookieBar = lecacyShowCookieBar;
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: django-cookie-consent
|
|
3
|
-
Version: 0.8.0
|
|
4
|
-
Summary: Django cookie consent application
|
|
5
|
-
Author-email: Informatika Mihelac <bmihelac@mihelac.org>
|
|
6
|
-
License: Copyright (c) Bojan Mihelac and individual contributors.
|
|
7
|
-
All rights reserved.
|
|
8
|
-
|
|
9
|
-
Redistribution and use in source and binary forms, with or without modification,
|
|
10
|
-
are permitted provided that the following conditions are met:
|
|
11
|
-
|
|
12
|
-
1. Redistributions of source code must retain the above copyright notice,
|
|
13
|
-
this list of conditions and the following disclaimer.
|
|
14
|
-
|
|
15
|
-
2. Redistributions in binary form must reproduce the above copyright
|
|
16
|
-
notice, this list of conditions and the following disclaimer in the
|
|
17
|
-
documentation and/or other materials provided with the distribution.
|
|
18
|
-
|
|
19
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
20
|
-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
21
|
-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
23
|
-
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
24
|
-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
25
|
-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
26
|
-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
27
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
28
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
29
|
-
|
|
30
|
-
Project-URL: Documentation, https://django-cookie-consent.readthedocs.io/en/latest/
|
|
31
|
-
Project-URL: Changelog, https://github.com/jazzband/django-cookie-consent/blob/master/docs/changelog.rst
|
|
32
|
-
Project-URL: Bug Tracker, https://github.com/jazzband/django-cookie-consent/issues
|
|
33
|
-
Project-URL: Source Code, https://github.com/jazzband/django-cookie-consent
|
|
34
|
-
Keywords: cookies,cookie-consent,cookie bar
|
|
35
|
-
Classifier: Development Status :: 4 - Beta
|
|
36
|
-
Classifier: Framework :: Django
|
|
37
|
-
Classifier: Framework :: Django :: 4.2
|
|
38
|
-
Classifier: Framework :: Django :: 5.1
|
|
39
|
-
Classifier: Framework :: Django :: 5.2
|
|
40
|
-
Classifier: Intended Audience :: Developers
|
|
41
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
42
|
-
Classifier: Operating System :: Unix
|
|
43
|
-
Classifier: Operating System :: MacOS
|
|
44
|
-
Classifier: Operating System :: Microsoft :: Windows
|
|
45
|
-
Classifier: Operating System :: OS Independent
|
|
46
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
47
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
48
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
49
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
50
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
51
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
52
|
-
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
53
|
-
Requires-Python: >=3.8
|
|
54
|
-
Description-Content-Type: text/markdown
|
|
55
|
-
License-File: LICENSE
|
|
56
|
-
License-File: AUTHORS
|
|
57
|
-
Requires-Dist: django>=4.2
|
|
58
|
-
Requires-Dist: django-appconf
|
|
59
|
-
Provides-Extra: tests
|
|
60
|
-
Requires-Dist: pytest; extra == "tests"
|
|
61
|
-
Requires-Dist: pytest-django; extra == "tests"
|
|
62
|
-
Requires-Dist: pytest-playwright; extra == "tests"
|
|
63
|
-
Requires-Dist: tox; extra == "tests"
|
|
64
|
-
Requires-Dist: isort; extra == "tests"
|
|
65
|
-
Requires-Dist: black; extra == "tests"
|
|
66
|
-
Requires-Dist: flake8; extra == "tests"
|
|
67
|
-
Provides-Extra: coverage
|
|
68
|
-
Requires-Dist: pytest-cov; extra == "coverage"
|
|
69
|
-
Provides-Extra: docs
|
|
70
|
-
Requires-Dist: sphinx; extra == "docs"
|
|
71
|
-
Requires-Dist: sphinx-rtd-theme; extra == "docs"
|
|
72
|
-
Provides-Extra: release
|
|
73
|
-
Requires-Dist: tbump; extra == "release"
|
|
74
|
-
Dynamic: license-file
|
|
75
|
-
|
|
76
|
-
Django cookie consent
|
|
77
|
-
=====================
|
|
78
|
-
|
|
79
|
-
Manage cookie information and let visitors give or reject consent for them.
|
|
80
|
-
|
|
81
|
-
[![Jazzband][badge:jazzband]][jazzband]
|
|
82
|
-
|
|
83
|
-

|
|
84
|
-
[![Build status][badge:GithubActions:CI]][GithubActions:CI]
|
|
85
|
-
[![Code Quality][badge:GithubActions:CQ]][GithubActions:CQ]
|
|
86
|
-
[![Code style: black][badge:black]][black]
|
|
87
|
-
[![Test coverage][badge:codecov]][codecov]
|
|
88
|
-
[![Documentation][badge:docs]][docs]
|
|
89
|
-
|
|
90
|
-

|
|
91
|
-

|
|
92
|
-
[![PyPI version][badge:pypi]][pypi]
|
|
93
|
-
|
|
94
|
-
**Features**
|
|
95
|
-
|
|
96
|
-
* cookies and cookie groups are stored in models for easy management
|
|
97
|
-
through Django admin interface
|
|
98
|
-
* support for both opt-in and opt-out cookie consent schemes
|
|
99
|
-
* removing declined cookies (or non accepted when opt-in scheme is used)
|
|
100
|
-
* logging user actions when they accept and decline various cookies
|
|
101
|
-
* easy adding new cookies and seamlessly re-asking for consent for new cookies
|
|
102
|
-
|
|
103
|
-
Documentation
|
|
104
|
-
-------------
|
|
105
|
-
|
|
106
|
-
The documentation is hosted on [readthedocs][docs] and contains all instructions
|
|
107
|
-
to get started.
|
|
108
|
-
|
|
109
|
-
Alternatively, if the documentation is not available, you can consult or build the docs
|
|
110
|
-
from the `docs` directory in this repository.
|
|
111
|
-
|
|
112
|
-
[jazzband]: https://jazzband.co/
|
|
113
|
-
[badge:jazzband]: https://jazzband.co/static/img/badge.svg
|
|
114
|
-
[GithubActions:CI]: https://github.com/jazzband/django-cookie-consent/actions?query=workflow%3A%22Run+CI%22
|
|
115
|
-
[badge:GithubActions:CI]: https://github.com/jazzband/django-cookie-consent/workflows/Run%20CI/badge.svg
|
|
116
|
-
[GithubActions:CQ]: https://github.com/jazzband/django-cookie-consent/actions?query=workflow%3A%22Code+quality+checks%22
|
|
117
|
-
[badge:GithubActions:CQ]: https://github.com/jazzband/django-cookie-consent/workflows/Code%20quality%20checks/badge.svg
|
|
118
|
-
[black]: https://github.com/psf/black
|
|
119
|
-
[badge:black]: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
120
|
-
[codecov]: https://codecov.io/gh/jazzband/django-cookie-consent
|
|
121
|
-
[badge:codecov]: https://codecov.io/gh/jazzband/django-cookie-consent/branch/master/graph/badge.svg
|
|
122
|
-
[docs]: https://django-cookie-consent.readthedocs.io/en/latest/?badge=latest
|
|
123
|
-
[badge:docs]: https://readthedocs.org/projects/django-cookie-consent/badge/?version=latest
|
|
124
|
-
[pypi]: https://pypi.org/project/django-cookie-consent/
|
|
125
|
-
[badge:pypi]: https://img.shields.io/pypi/v/django-cookie-consent.svg
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
cookie_consent/__init__.py,sha256=iPlYCcIzuzW7T2HKDkmYlMkRI51dBLfNRxPPiWrfw9U,22
|
|
2
|
-
cookie_consent/admin.py,sha256=9IoTczdhLqbn4QMuJSbIWNe6dahj6niiOz3IDKw4sk4,1112
|
|
3
|
-
cookie_consent/apps.py,sha256=nldd3hZnNChnrajmCD3crvxFfieWgLi625grNTEVYis,248
|
|
4
|
-
cookie_consent/cache.py,sha256=ZiWDxyYjGoOCV4JjCKPoBCkrM69Xbybjfzq_az4XcZc,1408
|
|
5
|
-
cookie_consent/conf.py,sha256=Q-xpL-HgxMf1PTrZL7TtGOdOUgaUYs8_d1ZwBipK7Nk,555
|
|
6
|
-
cookie_consent/middleware.py,sha256=DvpJC-YabhAt-8V2u6mTdpzGN1q833nnuAeO4E9cBaA,1981
|
|
7
|
-
cookie_consent/models.py,sha256=Zpt1w_xa8pmkhIAdc2yJ4GiV0-VllLHFpQsWnNEWylE,5520
|
|
8
|
-
cookie_consent/urls.py,sha256=U5ssRnjWoJM3GynERe0CUVsDdZ0-98BKX6vyimg312A,1119
|
|
9
|
-
cookie_consent/util.py,sha256=vS0bd9WJDnEpS8lBlBTJCbApJw8Flr98Rh-D0edjIQs,5948
|
|
10
|
-
cookie_consent/views.py,sha256=bkSMs8i9A-kSdgULNijGKDzphaRXzmZd0kcbX57aQjM,4173
|
|
11
|
-
cookie_consent/fixtures/common_cookies.json,sha256=iOEeMtZhERoeoxBz5Kj-Mo_XOUk5F1ljNon4w2odBJo,2449
|
|
12
|
-
cookie_consent/migrations/0001_initial.py,sha256=jIGX_k1nIm7GGpqgE-zvI1NIBizD8wkxYEb-BL6FR4c,4180
|
|
13
|
-
cookie_consent/migrations/0002_auto__add_logitem.py,sha256=rZ_kkXI3eij3k6PiGP5CsA41psENNZBbMD0qwUxBBTM,1633
|
|
14
|
-
cookie_consent/migrations/0003_alter_cookiegroup_varname.py,sha256=Cebn_m9mMo231NKegc9GU1LBLGLX5u3doO6Qvw-8PeA,873
|
|
15
|
-
cookie_consent/migrations/0004_cookie_natural_key.py,sha256=KAQy71oe2sJjz0xwB5dPDL9LBjFd4gqdZfNwiAVhs0Y,466
|
|
16
|
-
cookie_consent/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
-
cookie_consent/static/cookie_consent/cookiebar.js,sha256=vdouyXSBRkzKDiLdMAdOTWKzNO3vgXZNehUTIVUW5Gk,1919
|
|
18
|
-
cookie_consent/static/cookie_consent/cookiebar.module.js,sha256=_MSdSrafHkJX683S5MSGEEF6HS54ilbWM292JmqddIM,5606
|
|
19
|
-
cookie_consent/static/cookie_consent/cookiebar.module.js.map,sha256=nclEC3MR3Ho90I8E0OzA8l6fyo_ZN8OJedwvlvyXaW4,14533
|
|
20
|
-
cookie_consent/templates/cookie_consent/_cookie_group.html,sha256=wozvbdRjuKu3gnegN8vex_lDkku22pne830NWuzHXVw,1496
|
|
21
|
-
cookie_consent/templates/cookie_consent/base.html,sha256=ghOQ9vqSzKG32LfSQmj5xTF1PBs-SDtQEcOC1wjAemQ,85
|
|
22
|
-
cookie_consent/templates/cookie_consent/cookiegroup_list.html,sha256=PMO9iLxQrgRpQGLC0stlDamMonc3tLS3o5PWPF378Zg,308
|
|
23
|
-
cookie_consent/templatetags/__init__.py,sha256=FZk9hm7vBsK8G16pNugputbrrEciYqJc_XRAhTCcojI,46
|
|
24
|
-
cookie_consent/templatetags/cookie_consent_tags.py,sha256=gBn1Z61KeFcCRd368zxYCN9FJFQ1x5RX2E12ricdRgU,5175
|
|
25
|
-
django_cookie_consent-0.8.0.dist-info/licenses/AUTHORS,sha256=9Eey8K2GsZr5vWe3ZD3_oqA9aFgciNIVMTmyO5eq5rw,340
|
|
26
|
-
django_cookie_consent-0.8.0.dist-info/licenses/LICENSE,sha256=ZZi-io1uazO5jpDoNJScUfjeVI2dEzvDPOcyFhU0KYw,1349
|
|
27
|
-
django_cookie_consent-0.8.0.dist-info/METADATA,sha256=3S25hR8TTy85PJbdx0-jwDvmLvR29Ub7tuErWRVMSo4,6153
|
|
28
|
-
django_cookie_consent-0.8.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
29
|
-
django_cookie_consent-0.8.0.dist-info/top_level.txt,sha256=wD8Ix58rJguYeYfils_Z40QfVybiRYb1vwRNm09HN4M,15
|
|
30
|
-
django_cookie_consent-0.8.0.dist-info/RECORD,,
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
The django-cookie-consent was created by Bojan Mihelac (bmihelac).
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
The following is a list of much appreciated contributors:
|
|
5
|
-
|
|
6
|
-
* Jonathan L Herr (JonHerr)
|
|
7
|
-
* Jasper Koops (Jasper-Koops)
|
|
8
|
-
* Fernando Cordeiro (MrCordeiro)
|
|
9
|
-
* Mejans
|
|
10
|
-
* Sergei Maertens (sergei-maertens)
|
|
11
|
-
* Abdullah Alahdal (alahdal)
|
|
12
|
-
* some1ataplace
|
|
13
|
-
* binoyudayan
|
|
14
|
-
* adilhussain540
|
{django_cookie_consent-0.8.0.dist-info → django_cookie_consent-1.0.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{django_cookie_consent-0.8.0.dist-info → django_cookie_consent-1.0.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|