How do I get from the HTML form submit to the Django response?

Source: Internet
Author: User
Tags html form html form submit
  • How is the data in the HTML form being wrapped in HTTP request? How do I find this data in my browser?

Browser-made HTML data parsing

The data in the form becomes the name=value pair in the post body

Request Content-type explains how the data of the post body is parsed (https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Forms/Sending_ And_retrieving_form_data)

Browser debugging tool in the Network tab can see the big all the data: Request header, Response header, Form data, cookie

  • How does Django parse out the data? How is this data used in Django?

Request. Post[name]

How do I get from the HTML form submit to the Django response?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.