Error when applying migrations 'no password supplied', but I can connect to the database from the interpreter
I decided to revive my pet project that I wrote 2 years ago. First I had to update all dependencies, this is ok. But migrations are not performed when working with a local server. The pg_hba.conf file has md5. At the same time, if I connect to the DB from the interpreter via psycopg2, everything works fine.
This is what traceback shows
I would like to quickly figure this out, so I am writing here, maybe someone has encountered this and can help right away. If not, I will, of course, dig into the modules from the traceback.
Thanks in advance for your answer!
The "no password supplied" error during migrations occurs when your database connection settings lack a password. To fix it, check your settings.py or environment variables and ensure the password field is correctly defined in the DATABASES configuration.