1👍
✅
Running the command python manage.py makemigrations
accepts the order in executing the migrations like this: python manage.py makemigrations useraccount
Due to limitations of Django’s dynamic dependency feature for swappable models, the model referenced by AUTH_USER_MODEL must be created in the first migration of its app (usually called 0001_initial); otherwise, you’ll have dependency issues.
You should do the migration of your Usermodel first. Read here if you are unable to drop the database. Here you will also find the text of above Quotation. Read here if you can launch the entire database with all its migrations again.
Source:stackexchange.com