내가 하고 싶은 것들 중 하나

[django 에러 해결] ValueError 본문

웹 세상/django

[django 에러 해결] ValueError

여러가지이야기 2020. 5. 16. 22:46

문제상황

마이그레이션과 마이그레이트 시도 중에

마이그레이션은 성공 했으나 마이그레이트는 되지 않고 ValueError가 떴다.

ValueError: The field admin.LogEntry.user was declared with a lazy reference to 'accounts.account', but app 'accounts' doesn't provide model 'account'.

해결과정

https://stackoverflow.com/questions/50324561/valueerror-the-field-admin-logentry-user-was-declared-with-a-lazy-reference

마이그레이션 파일과 데이터베이스를 지우고 다시 마이그레이트를 해보니 성공했다는 내용

나도 그렇게 했다.

성공!

'웹 세상 > django' 카테고리의 다른 글

Unable to import  (0) 2020.06.30
[django] base.html에서 부트스트랩 사용하기  (0) 2020.05.17
Model 설정할 때 NameError가 뜬다면?  (0) 2020.05.06
jquery 다운받아 사용하기  (0) 2020.05.05
pip install --upgrade pip  (0) 2020.05.04
Comments