码迷,mamicode.com
首页 > 移动开发 > 详细

ValueError: The field authtoken.Token.user was declared with a lazy reference to 'api.user', but app 'api' isn't installed解决方法

时间:2019-03-22 09:21:44      阅读:503      评论:0      收藏:0      [点我收藏+]

标签:ref   __init__   auth   packages   文件目录   http   blog   err   sdn   

找到自己的python3.x,进入site-packages/django/contrib/admin/migrations文件目录下,除了__init__.py文件,其他的全部删除。(注意,切勿把__init__.py文件删了,也不要把contrib/contenttypes这个文件夹下的migrations删了,不然会导致migrate功能失效,就只能把django卸了重下)。

转自:https://blog.csdn.net/cf313995/article/details/84342187

ValueError: The field authtoken.Token.user was declared with a lazy reference to 'api.user', but app 'api' isn't installed解决方法

标签:ref   __init__   auth   packages   文件目录   http   blog   err   sdn   

原文地址:https://www.cnblogs.com/godkzzz/p/10576133.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!