Django cookie law

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.


  • jQuery


  • Add the cookie_law app to your INSTALLED_APPS.
  • Add 'url(r'^cookies/', include('apps.cookie_law.urls')),' to your main, without the ''.
  • Run the cookie_law migrations or syncdb if you don't use South.
  • Load the cookie_bar template tags and 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 %}