from django.apps import AppConfig class AppConfig(AppConfig): # 默认增加字段的数据类型,一般是增加ID default_auto_field = 'django.db.models.BigAutoField' name = 'app'