Field options
Null
If True,django, a null value will be stored in the database. The default is False.
Blank
If true, this field is allowed to be empty. The default is False.
Choices
A field element consisting of two elements that can iterate over the selection.
Db_index
If true, then django-admin.py Sqlindex will generate a CREATE INDEX statement.
Db_column
The name of the database table column for the field.
Default
The default value for the field.
Editable
If False, this field will not be displayed on the admin page or in other form model pages. The default is true.
Error_messages
The Error_messages parameter allows you to overload the default error message.
Help_text
Displays help information for the form part.
Primary_key
If true, then this field will be set as the primary key for the model.
Unique
If true, this field must be unique in the form.
Verbose_name
The name of the field humanization.
Field type
Autofield
One automatically increases Integerfield based on available IDs. Generally not used directly. If primary Key is not specifically specified. Then it will be set to primary Key.
Bigintegerfield
A 64-bit integer. From -9223372036854775808 to 9223372036854775807.
Binaryfield
Stores binary data.
Booleanfield
A field that stores true/false.
Charfield
Stores the string. Parameter max_length must exist.
Commaseparatedintegerfield
Integers separated by commas
Datefield
Storage date, there are several additional parameters, Auto_now,auto_now_add.
Datetimefiled
Stores the date and time.
Decimalfield
Stores decimals.
Emailfield
A valid e-mail address value in the form of Charfield
Filefield
A field for uploading files.
Filepathfield
Charfield in File path form
Floatfield
Floating point number
Imagefiled
Inherits the properties and methods of the Filefield. It also verifies whether it is a picture.
Integerfield
An integer
Ipaddressfield
IP address.
Genericipaddressfield
IPV4 or IPV6 address.
Nullbooleanfield
Similar to Booleanfield, but allows NULL as one of the options.
Positiveintegerfield
Positive
TextField
Stores a large text field.
Timefiled
Storage time
Urlfield
Stores the Charfield in the form of a URL.
Django Deep learning model field learning