I am having similar problem but on Mac -Sonoma version 14.2 -Django 5… I can connect to my database via terminal but not from my Vscode (installed extensions: psycopg2, python-decouple)
–getting this error:
…env/lib/python3.11/site-packages/psycopg2/init.py", line 142, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
django.db.utils.OperationalError: FATAL: password authentication failed for user “postgres,”
Your help is needed… I reinstalled postgress and pgadmin and my environment and the problem is still there… Thanks in advance for your help!
Please show the command line you are using for psql to connect. Also post the values that you are using for NAME, USER, HOST, and PORT for your settings.