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‘
原文:http://www.cnblogs.com/liujiliang/p/7858054.html