Python (Django) Classroom Series – 21/Sept/2021

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)
  • Refer Here for the usage of the form with POST

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About learningthoughtsadmin