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

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.

Image for a hint

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

Best related

Other by Ivan Borshchov