A practical summary of the behavior characteristics of the internal class-classes Meta: In the Django model class

Source: Internet
Author: User
  • Abstract

Abstract meaning, the actual application can be understood as all the data table common fields can be written in a single model class, marked abstract, then the rest of the data table used in this field directly inherit this model class can.

  • Db_table

Db_table for custom databases indicates that the Django default data table name is not used.

  • Managed

Django automatically generates mapped database tables, set to Managed=false, and does not generate a mapped data table

  • Werbose_name

Verbose_name means an easy-to-read name for the model class.

  • App_lable

When the model class is not in the models.py file under the default application package, you need to specify which application, such as app_lable= ' card '

A practical summary of the behavior characteristics of the internal class-classes Meta: In the Django model class

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.