Skip to main content

Small app that detects if the current user is located in the European Union. If so, a small notification about cookies is displayed. Once notification is closed by the user, it will not appear anymore.

uecookie9 also creates a FlatPage with a Cookie Policy.

Requirements

Installation

  • Install via pip:

    pip install django-uecookie9
  • Add uecookie9 to your INSTALLED_APPS

  • Add django.core.context_processors.request to your TEMPLATE_CONTEXT_PROCESSORS:

    from django.conf import settings
     TEMPLATE_CONTEXT_PROCESSORS = settings.TEMPLATE_CONTEXT_PROCESSORS + (
            'django.core.context_processors.request',
    )
  • Override template uecookie9/policy.html with your actual Cookie Policy.

  • Execute the command below (creates a FlatPage /cookies/):

    python manage.py uecookie9

Usage

Paste the following code in the right place in your template:

{% load uecookie9 %}{% uecookie9 %}

Customization

By default, notification is wrapped in a fixed div that shows at the bottom of the page. In order to customize it you have to create your own version of template uecookie9/message.html.

Disclaimer

There is no guarantee that this app is enough to meet UE requirements. Use at your own risk.

Notes

  • uecookie9 was tested with Django 1.6.5, however it should work with newer or older versions as well.

  • This application includes GeoLite2 data created by MaxMind.

Release files for django-uecookie9 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-uecookie9 0.1
File Size Uploaded
django-uecookie9-0.1.tar.gz 443.9 kB Details

Release files / django-uecookie9-0.1.tar.gz

Download URL django-uecookie9-0.1.tar.gz
Size 443.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a34953f36bd80e683348d9baa660fb30e5e9f45324b7fbf9d3cd2874ba490512
BLAKE2b-256 checksum
How to use checksums
e5ae2656d19ebaaeb951bb29ef8585609ad9a19d329c5e197a04f01e29fbb40d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page