您的位置:首页 > 编程语言 > Go语言

common concepts about Django

2017-11-16 11:45 295 查看
CSRF

cross site request forgery(跨站点的请求伪造)

For example: a malicious website contains a link, a form button or some JavaScript that is intended to perform some action on your website, using the credentials of a logged-in user who visits the malicious site in their browser

Middleware

a framework of hooks into Django’s request/response processing. It’s a light, low-level “plugin” system for globally altering Django’s input or output.

for example, AuthenticationMiddleware associate users with requests using session.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  django csrf middleware