Handling Forms in Django
- The
<form>
Element- There are three html attributes that you will be using to modify the behavior of the form
- method:
- This is HTTP method used to submit the form, either GET or POST. The default value is GET
- action:
- This refers to the URL to send the form data
- enctype:
- This sets the encoding type of the form.
- The most common values are application/x-www-form-urlencoded (this is default) or multipart/form-data(set this for uploading files)
- method:
- There are three html attributes that you will be using to modify the behavior of the form
- Refer Here for the usage of the form with POST