August 2016
Beginner to intermediate
717 pages
15h 24m
English
We have studied the basics of the forms that allow you to create simple forms with little customization. Sometimes, it is useful to customize aspects such as data validation and error display, or use special graphics.
It is useful to perform specific validation of the form fields. Django makes this easy while reminding you of the advantages of the forms. We will take the example of the addition of a developer form, where we will conduct an audit of the password.
For this, we will change the form in our view (in the create_developer.py file) in the following manner:
class Form_inscription(forms.Form): name = forms.CharField(label="Name", max_length=30) login = forms.CharField(label = "Login") ...
Read now
Unlock full access