Django: I get a [relation “auth_group” does not exist] error after syncdb

前端 未结 7 621
粉色の甜心
粉色の甜心 2021-01-04 22:33

I started a new Django 1.8 project and realized that I missed something (i had done the initial migrations). I dropped the database (postgreSQL) and deleted migration<

7条回答
  •  無奈伤痛
    2021-01-04 23:12

    One of your paths ("pointing urls.py on your core folder along with the settings.py") makes that problem occur importing django.contrib.auth and directly using methods and properties of "auth" after calling those views

    • Remove all migrations except "init.py" of each apps
    • Go to projects urls.py and comment out all the paths
    • run "heroku run python manage.py makemigrations"
    • run "heroku run python manage.py migrate"

提交回复
热议问题