I dropped some table related to an app. and again tried the syncdb command
python manage.py syncdb
It shows error like
dja
What solved my problem in situation when manage.py setmigration and then migrate to the SQL database is not working properly did is following:
python manage.py migrate --fake MyApp zero
python manage.py migrate MyApp
And the problem that rises with connections.py and and after running correctly the migration command is solved! At least for me.
I'm using Python (3.x), MySQL DB, Django (3.x), and I was in situation when I needed after some time of successfully creating tables in my database, that some error regarding connections.py raises. But, above commands helped. I hope they will help all those who are having these type of problems.