[Django]-ValueError: Dependency on app with no migrations: customuser

131👍

✅

You haven’t run manage.py makemigrations customuser to create the migrations for your CustomUser app.

Also, you haven’t run any of the existing migrations – you should do manage.py migrate.

18👍

Run the following commands

  1. python manage.py makemigrations
  2. python manage.py migrate

This solved my error.
Hope it helps you.

5👍

For me makemigrations was the one throwing the error which was super annoying. Finally I realized I had deleted all the migration files, but you have to delete the migrations folder as well! Otherwise you’ll get this error.

-3👍

try drop database, run again makemigrations and after migrate.

Leave a comment