📜  django 中的 cookie - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:37.902000             🧑  作者: Mango

代码示例1
def setcookie(request):
    html = HttpResponse("

Dataflair Django Tutorial

") html.set_cookie('dataflair', 'Hello this is your Cookies', max_age = None) return html