ITPub博客

首页 > 应用开发 > > django配置xadmin后出现RuntimeError

django配置xadmin后出现RuntimeError

作者:abcjob 时间:2019-07-25 15:02:17 0 删除 编辑

版本:django1.9,python2.7。

从github下载xadmin源文件后,跟着视频配置,然后就出现这个错误。

RuntimeError: Model class extra_apps.xadmin.models.Bookmark doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. 

(翻译:RuntimeError:模型类extra_apps.xadmin.models.Bookmark没有声明显式app_label,也不在INSTALLED_APPS中的应用程序中,或者在加载应用程序之前导入。)

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4798/viewspace-3127429/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: EF迁移报错
请登录后发表评论 登录
全部评论

注册时间:2019-10-12

  • 博文量
    159
  • 访问量
    6868