Skip to main content

Django Cookie Filter

Project description

Django middleware which removes all unwanted cookies - useful for improving cache hit ratios when analytics cookies interfere with caching.


Using pip:

$ pip install django-cookiefilter

Edit your Django project’s settings module, and add the middleware to the start of MIDDLEWARE:

    # ...


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:


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-cookiefilter-1.0.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

django_cookiefilter-1.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page