What could be the possible reasons for encountering the error ‘OperationalError: no such table: auth_user’ when running a Django application, and how can it be resolved?
I am try to solves that error but I cant find solution on Internet related to this error please if you optimized and best solution kindly give me proper answer?
‘OperationalError: no such table: auth_user’ when running a Django application, and how can it be resolved?
Muhammad Abdullah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
0
auth_user
is a table that needs to be automatically created by Django. But this process is only triggered if you run:
python manage.py migrate
Also, make sure you create a superuser with:
python manage.py createsuperuser