published by | James Bennett |
---|---|
in blog | James Bennett |
original entry | Set cookies the right way |
This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction.
Django’s request and response objects, and their attributes and methods, make dealing with cookies easy. You can read from the request.COOKIES
dictionary to get a cookie, and …