[英]How to get values from Raw Html for in Django
This maybe stupid. 这可能是愚蠢的。 But I'm finding problem in it.
但是我发现其中存在问题。
I'm working with Django, I have read docs. 我正在使用Django,我已经阅读了文档。
But for the forms, there is class. 但是对于表格,有类。 If I use this then a form is generated in the view,
如果我使用它,则会在视图中生成一个表单,
But actually I hardcoded the entire form, I just need to take the values from it. 但是实际上我对整个表单进行了硬编码,我只需要从中获取值即可。
Like PHP. 像PHP。
How to achieve this, I don't wanna Django to generate my form. 如何实现这一目标,我不希望Django生成我的表单。
Thanks in advance! 提前致谢!
您可以通过以下方式访问它: request.GET['field_name']
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.