While trying to run your Django server, have you ever gotten this error?

FATAL: password authentication failed for user "postgres"

Likely the cause for this, is that your database settings are wrong. Head over to your settings.py file and make sure that the values for USER and PASSWORD are correct. And by correct I mean that they are they are the credentials that would let you log into your database.

Here's what a typical database setup would look like in your settings.py:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'portfoliodb',
        'USER':'postgres',
        'PASSWORD':'django1234',
        'HOST':'localhost',
        'PORT':'5432',
    }
}

Forgot what you set your password to? Here's a great guide to change your password: https://www.postgresqltutorial.com/postgresql-reset-password/


Here's some courses you might like: