Django Deep learning model field learning

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.