Solved - ValueError: The field admin.LogEntry.user was declared with a lazy reference.
-
问题详情
ValueError: The field admin.LogEntry.user was declared with a lazy reference to 'api.customuser', but app 'api' doesn't provide model 'customuser'.
-
解决方法:删除migrations里面的其他文件
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete find . -path "*/migrations/*.pyc" -delete
-
重新执行
python manage.py makemigrations python manage.py migrate
如果解决了你的problem,给个👍