Topics covered by this tutorial
For this, we will use thestartapp
Django subcommand:
Add a simple view in forms -forms/views.py
Define the routing for our new app -forms/urls.py
Update settings to include the new app -config/settings.py
Update routing -config/urls.py
/forms
should be visible:forms
file and define the new Form Class object.form.as_p()
- the paragraph
view of a form.Controller code -forms/forms.py
-index
method
HTML page - defined informs/templates
forlder
Form is valid
message. Update the form with a new fieldID
(numeric type):
The page server to the users is updated automaticaly to include the new field