For example, when adding database field, there will be such a field.models.CharField(null=True, blank=True)
Herenull=True
Andblank=True
On behalf of What?
Null
For databases, ifnull=True
A that indicates that this field of the database can be empty.
Blank
For forms, ifblank=True
, said your form can not fill in the field, such asAdmin
Added under interfaceModel
A record. The intuitive view is that the field is not bold