I have the following django template (http://IP/admin/start/ is assigned to a hypothetical view called view):
{% for source in sources %}
&l
-
Read about request objects that your views receive: https://docs.djangoproject.com/en/dev/ref/request-response/#httprequest-objects
Also your hidden field needs a reliable name and then a value:
Then in a view:
request.POST.get("title", "")
- 热议问题