Does Django set any cookies by default ?

Does Django set any cookies by default ?
I’m asking because if yes, then I have to create this “Cookie Consent” message.


Django sets cookies for things like sessions, which fall under the category of technical cookies necessary for the site to run. As such you don’t need to notify the user or ask for consent.

If you store other data in cookies, or add basically any third-party tracking package, e.g. for analytics or social media integration, you will need to ask.

It’s worth reviewing the law before jumping in here: the law isn’t as blind/silly/blunt as it’s often taken to be.

1 Like