Why do I get a “auth_user does not exist”error when running “migrate” on a newly created django project with “registration redux” app installed?

前端 未结 6 1544
小鲜肉
小鲜肉 2021-02-20 10:57

Given a newly created django project with the following installed apps:

INSTALLED_APPS = (
\'django.contrib.admin\',
\'django.contrib.auth\',
\'django.contrib.co         


        
6条回答
  •  后悔当初
    2021-02-20 11:56

    After updating my Django version, I got this error and fix as running these two lines:

    python manage.py migrate auth
    python manage.py migrate
    

    auth_user table inside auth model should run first I guess.

提交回复
热议问题