django补充
通过表名获取app的name
models.UserInfo._meta.app_label
>>> from repository import models >>> models.UserInfo <class 'repository.models.UserInfo'> >>> models.UserInfo._meta <Options for UserInfo> >>> models.UserInfo._meta.app_label 'repository'
models.UserInfo._meta.app_label
>>> from repository import models >>> models.UserInfo <class 'repository.models.UserInfo'> >>> models.UserInfo._meta <Options for UserInfo> >>> models.UserInfo._meta.app_label 'repository'