python - 怎么用django从前端获取数据,并且赋值给某个变量
PHP中文网
PHP中文网 2017-04-18 09:33:19
0
2
283

现在我想通过html表单获取一个字符串,然后把这个字符串赋值给views.py里某个字符串变量,请问大神该如何操作

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
黄舟

Reference: Django Notes (7) - User interaction and forms


Questions I answered: Python-QA

PHPzhong

You can send ajax in the front-end and send the front-end data to the back-end, and the back-end will process it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template