Source

django_cookie_law_nl / cookie_law / README

Full commit
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

---------------------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.
- Override the _base_include.html template if you wish to change the default text and link to cookie-policy page.
- Include the _base_include.html template at the spot you want the popup.
- Surround your cookies with {% if request.COOKIES.allow_cookies == '1' %} <cookie> {% endif %}