1. wlansu
  2. django_cookie_law_nl

Source

django_cookie_law_nl / README

This is a Django application that makes it easy to implement cookies compliant with Dutch law, as far as I am able
to tell. I'm not a lawyer, so use at your own risk.


---------------------Version History:--------------------------------------

*0.1    12-11-2012 - Improved README, added setup.py, added comments
*0.1.1  15-11-2012 - Changed reload delay to 1.5 seconds. Sometimes took too long for cookie to be set.
*0.1.2  15-11-2012 - You can now set the text displayed in the cookie bar and the link to your cookie page.
*0.1.3  21-11-2012 - Optimized jQuery call to create cookie.

---------------------Requirements:-----------------------------------------

- jQuery

---------------------Usage:------------------------------------------------

- Add the cookie_law app to your INSTALLED_APPS.
- Add 'url(r'^cookies/', include('apps.cookie_law.urls')),' to your main urls.py, without the ''.
- Run the cookie_law migrations.
- Include {% show_cookie_bar %} under the <body> tag in your base template.
- Make a cookie bar in the admin.
- Surround your cookies with {% if request.COOKIES.allow_cookies == '1' %} <cookie> {% endif %}