Written by
django-style
on
on
[Django]Dependency on app with no migrations: accounts[오류해결]
[Django]Dependency on app with no migrations: accounts[오류해결]
오류
Dependency on app with no migrations: accounts
해결
오류에서 바로 볼 수 있듯 accounts의 migrations가 되어있지 않아서 생긴 오류로 터미널 창에
python manage.py makemigrations python manage.py migrate
를 입력하여 해결할 수 있는 문제였다.
다만
2021.09.03 - [분류 전체보기] - [Django] You have num unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.Run 'python manage.py migrate' to apply them. 오류 해결
단순히 migrate가 안되어있는 문제라면 왜 해당 오류와 다른 오류가 나는걸까?
Dependency on app 앱에 대한 종속성...
account에서 models에
class User(AbstractUser): pass
해당 코드를 통해 User 모델을 대체하였는데 아마도 이 부분에서 앱에 종속되는 무언가가...? 생긴 모양이다... 휴... 어렵다...
from http://w-world.tistory.com/141 by ccl(A) rewrite - 2021-10-26 03:01:16