[Solved]-Django: use render_to_response and set cookie

25👍

Yes, not a problem. The principle is exactly the same.

response = render_to_response(template_name, locals(), context-etc..)
response.set_cookie("favorite_color",request.GET["favorite_color"])
return response
👤Wolph

Leave a comment