[Answered ]-Django auth models not being created

0👍

I have solved the problem finally by removing the db routers. This is because in my application as described above, i’m routing the auth requests to another db where there are already existing.

Such that running

python manage.py sqlmigrate auth 000_initial

Produces and empty sql statement.
Removing the db routers from the settings config proceeded by running

python manage.py migrate auth

produces the ‘sql statements’ hence migration of downstream apps proceeds without a problem.

2👍

Try migrating your auth app manually followed by default migrate command.

python manage.py migrate auth
python manage.py migrate

hope this helps.

Leave a comment