Python/django
[#. Django] ValueError: The field admin.LogEntry.user was declared with a lazy reference to~ 에러 해결하기
shab
2021. 4. 12. 14:49
반응형
DRF(Django Rest Framework)에서 로그인/회원가입 관련해서 세팅하는데
python3 manage.py makemigrations
마이그레이션 했을 시에 발생한 에러다
migrations 폴더에 __init__.py 파일을 제외한 파일/폴더 삭제
db.sqlite3 파일 삭제한 후 마이그레이션, 마이그레이트 하면 해결된다
python3 manage.py makemigrations
python3 manage.py migrate
참고
ValueError: The field admin.LogEntry.user was declared with a lazy reference
I'm developing a new django project and stuck with migration. I would like to make a UserModel, and in order to do that, I did two things so far. 1. I made AuthUser model and set a Meta class in the
stackoverflow.com
반응형