[Answered ]-'django.db.backends.posgresql_psycopg2' isn't an available database backend

1👍

You’re using an old database ENGINE name that was deprecated. Try this:

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

It’s what the error says. Also, postgresql was misspelled as posgresql (missing a t). I’ve always thought PostgreSQL should rebrand to an easier name!

Leave a comment