django-cookie-consent
  • Quickstart
  • Main concepts
  • Usage
  • Javascript integration
  • Example app
  • Settings
  • Contributing
  • Changelog
  • Models
  • Views
    • CookieGroupAcceptView
    • CookieGroupBaseProcessView
      • CookieGroupBaseProcessView.get_success_url()
    • CookieGroupDeclineView
    • CookieGroupListView
      • CookieGroupListView.model
    • CookieStatusView
  • Util
  • Template tags
  • Middleware
django-cookie-consent
  • Views
  • View page source

Views

class cookie_consent.views.CookieGroupAcceptView(**kwargs)

View to accept CookieGroup.

class cookie_consent.views.CookieGroupBaseProcessView(**kwargs)
get_success_url()

If user adds a ‘next’ as URL parameter or hidden input, redirect to the value of ‘next’. Otherwise, redirect to cookie consent group list

class cookie_consent.views.CookieGroupDeclineView(**kwargs)

View to decline CookieGroup.

class cookie_consent.views.CookieGroupListView(**kwargs)

Display all cookies.

model

alias of CookieGroup

class cookie_consent.views.CookieStatusView(**kwargs)

Check the current accept/decline status for cookies.

The returned accept and decline URLs are specific to this user and include the cookie groups that weren’t accepted or declined yet.

Note that this endpoint also returns a CSRF Token to be used by the frontend, as baking a CSRFToken into a cached page will not reliably work.

Previous Next

© Copyright 2013, Bojan Mihelac.

Built with Sphinx using a theme provided by Read the Docs.