As I understand it, this is the way to set a cookie: def index(request): response = HttpResponse('blah') response.set_cookie('id', 1) return response.
確定! 回上一頁