Fix django.db.utils.operationalerror: fe_sendauth: no password supplied

#StandWithUkraine
Today, 20th March 2023, Ukraine is still bravely fighting for democratic values, human rights and peace in whole world. Russians ruthlessly kill all civilians in Ukraine including childs and destroy their cities. We are uniting against Putin’s invasion and violence, in support of the people in Ukraine. You can help by donating to Ukrainian's army.

In settings.py check DATABASES configuration:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'your_db_name',
        'USER': 'postgres',
       # 'PASSWORD': 'Password for postgres user',
       # 'HOST': 'localhost',
       # 'PORT': '5432',
    }
}
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'your_db_name',
        'USER': 'postgres',
        #  'PASSWORD': 'Password for postgres user',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'your_db_name',
        'USER': 'postgres',
        'PASSWORD': 'Password for postgres user',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}

This is it. Please answer in the comments whether it works for you.

django.db.utils.operationalerror: fe_sendauth fix

#django #postgresql
4
Ivan Borshchov profile picture
Oct 14, 2020
by Ivan Borshchov
Did it help you?
Yes !
No

Best related