1、提示app未注册
错误信息:RuntimeError: Model class apps.xxx.models.xxx doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
解决办法:appName->apps.py,修改name为绝对路径(apps.xxx)
2、后台管理页面报错
错误信息:Django render() got an unexpected keyword argument 'renderer'
解决办法:版本向后兼容问题,注释掉lib\site-packages\django\forms\boundfield.py in as_widget, line 93,中的renderer返回值
链接:https://blog.csdn.net/xiaosongshine/article/details/88548348
网友评论