emluy 개발 일기

Django - django.db.utils.ProgrammingError: relation "account_user" does not exist 오류 본문

웹 개발/뭔가 안될 때

Django - django.db.utils.ProgrammingError: relation "account_user" does not exist 오류

yulme 2020. 11. 6. 19:07
SMALL

1. 오류 이유

: account라는 app에 migrations 폴더가 없기 때문이다

 

2. 해결 방법

2-1. 전체 앱 동시에 makemigrations 해보기

$ python manage.py makemigrations

 

-> 했을 때 각 app에 migrations 폴더가 안 생기는 경우 2-2번으로

 

2-2. 각 app에 makemigrations 하기

$ python manage.py makemigrations 앱이름

 

 

 

 

github.com/jazzband/django-constance/issues/227

 

Migration Error: django.db.utils.ProgrammingError: relation "constance_config" does not exist LINE 1: ...ce_config"."key", "cons

I have recently setup a project but upon running the migrations, this the error it throws. File "/home/saad/virtualenvs/sentimeter_backend/lib/python3.5/site-packages/django/utils/functional.p...

github.com

 

반응형
Comments