[Django]-Django: when creating custom user, ValueError: Dependency on unknown app

4๐Ÿ‘

โœ…

So after trying various approaches to tackle the problem, I found that the problem lie in an accidental mistake. In the users directory, Iโ€™ve deleted all the files in migrations directory including its __init__.py. If there is no __init__.py file, the ValueError will be thrown. If you manually add the __init__.py file, everything works like a charm.

To those having the same problem, good luck!

๐Ÿ‘คAren Li

0๐Ÿ‘

For Django 3.2 deleting the migrations directory in the users directory and running

python manage.py makemigrations users
python manage.py migrate

worked for me.

๐Ÿ‘คRAYNARD DODZI

Leave a comment