ConfigurationΒΆ
Add
cookie_consent
to yourINSTALLED_APPS
.Add
django.template.context_processors.request
toTEMPLATE_CONTEXT_PROCESSORS
if it is not already added.Include django-cookie-consent urls in
urls.py
:path('cookies/', include('cookie_consent.urls')) # or for older Django versions: url(r'^cookies/', include('cookie_consent.urls'))
Run
syncdb
ormigrate
django management command.