Django使用models进行迁移时报错django.contrib.admin.sites.AlreadyRegistered: The model User is already registe
将admin文件修改如下:#Registeryourmodelshere.importinspectimportsysfromdjango.contribimportadminfromarticle.modelsimport*cls_members=inspect.getmembers(sys.modules[__name__],inspect.isclass)forname,clsincls_m