django form processing

django of forms provides rendering the form, you can also verify the legitimacy of the submitted form data

Next, a series of simple operations

1. A new app called front, and then create a froms.py file in the app, at the same time to add the app to file within setting.py

  

 

 2. Then write down the app view function, With further study, this time with a view to writing class.

    

 

    

 

    

 

   

 

 3. Create a forms.html file in templates and write

    

 

4. Next, the configuration url

5. The use of Postman network debugging tools for debugging, respectively GET and POST method

   

   

 

   

 

   

 

   Here form the basic processing operations reported to the paragraph, although without manually creating a form, but in the actual development, the proposal is still with the html form to get

   

 

    

 

Guess you like

Origin www.cnblogs.com/cxydnxs/p/12594402.html