0

I created PostgreSQL in Django project. When I do migrate for database it's return this exception.

django.core.exceptions.ImproperlyConfigured: 'django.db.backends.postgresql'
isn't an available database backend.
Try using 'django.db.backends.XXX', where XXX is one of:
    'mysql', 'oracle', 'sqlite3'

I tried postgresql_psycopg2 and pip install psycopg2-binary but doesn't work.

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'eatadil',
        'USER': 'postgre',
        'PASSWORD': 'realpassword',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}

How can I fix this problem?

Paolo
  • 20,112
  • 21
  • 72
  • 113
minidev
  • 13
  • 4

1 Answers1

0

This problem solved.

You can only update django last version.

minidev
  • 13
  • 4