Django Cookie Filter
Project description
Django middleware which removes all unwanted cookies - useful for improving cache hit ratios when analytics cookies interfere with caching.
Installation
Using pip:
$ pip install django-cookiefilter
Edit your Django project’s settings module, and add the middleware to the start of MIDDLEWARE:
MIDDLEWARE = [
"cookiefilter.middleware.CookieFilterMiddleware",
# ...
]
Configuration
Out of the box the standard Django cookie names will work without any other configuration. However if your project uses different or additional cookie names, edit COOKIEFILTER_ALLOWED in your project’s settings module:
COOKIEFILTER_ALLOWED = [
"analytics",
"csrftoken",
"django_language",
"messages",
"sessionid",
]
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_cookiefilter-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66a328b009c3037b29f44c0f9f624284d4d5581fccb55e1e8351ca34b75776f1 |
|
MD5 | 7a6a199275850e03cb0a33242bde8655 |
|
BLAKE2b-256 | 90658714b39fba9e66b0c73857a0f9e4c4c4e379f0f8343b0189025686cd4ea1 |