django中的meta是什么?
我阅读了很多有关request.meta
的文章,但我对此一无所知。 谁能解释一下?
I read a lot of articles about request.META
but I didn't understand anything about it and what it does.
Can anyone explain it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
request.meta 包含即将到达Django服务器的HTTP请求(HTTP标头)的所有元数据,它可以包含用户代理,IP地址,内容类型等。
请在此处索要之前阅读官方文档: https://docs.djangoproject.com/en/4.0/ref/request-response/#django.http.http.httprequest.meta
request.META contains all the metadata of the HTTP request (the HTTP headers) that is coming to your Django server, it can contain the user agent, ip address, content type, and so on.
Please read the official docs before asking for something in here: https://docs.djangoproject.com/en/4.0/ref/request-response/#django.http.HttpRequest.META