"django.core.exceptions.ImproperlyConfigured:" while doing migrations to posgreSQL

LukmanAFZ

I created a table in models.py and also added the connection to my PostgreSQL database in settings.py. But when I do the migrations in the command prompt I get these error

`

django.core.exceptions.ImproperlyConfigured: 'django.db.backends.posgresql' isn't an available database backend or couldn't be imported. Check the above exception. To use one of the built-in backends, use 'django.db.backends.XXX', where XXX is one of:
    'mysql', 'oracle', 'postgresql', 'sqlite3'

`

I have installed Django through command prompt but still I don't know why I get these error. I was expecting a successful migration of my table to PostgreSQL data base.

Aadhi

It's a common a mistake

'django.db.backends.posgresql'

You made a typo here. Forgot to add the 't' in postgresql

'django.db.backends.postgresql'

This should fix the error

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

DRF throw django.core.exceptions.ImproperlyConfigured when override get_queryset

django.core.exceptions.ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb

How to resolve "django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: foo" in Django 1.7?

django.core.exceptions.ImproperlyConfigured

django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not configured

django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty

django.core.exceptions.ImproperlyConfigured: Enable 'django.contrib.auth.context_processors.auth'

django.core.exceptions.ImproperlyConfigured: WSGI application 'application' could not be loaded

"Apps aren't loaded yet" and "django.core.exceptions.ImproperlyConfigured" in Django?

Django Celery scheduled task django.core.exceptions.ImproperlyConfigured

django.core.exceptions.ImproperlyConfigured: Field name `id` is not valid for model

django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library

django.core.exceptions.ImproperlyConfigured. The included URLconf does not appear to have any patterns in it

Python | Docker | Django | django.core.exceptions.ImproperlyConfigured Error

Specifying a namespace in include() without providing an app_name ' django.core.exceptions.ImproperlyConfigured

Django channels pytest testing. django.core.exceptions.ImproperlyConfigured. .

How to fix the error for django 'django.core.exceptions.ImproperlyConfigured' with urls?

Django Error: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module

django.core.exceptions.ImproperlyConfigured: Django 3.0.1 is not supported

Django.core.exceptions.ImproperlyConfigured: Error running functional_tests.py

django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG

Django.core.exceptions.ImproperlyConfigured:

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb'

django.core.exceptions.ImproperlyConfigured: Cannot import ASGI_APPLICATION module 'routing'

django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured

django.core.exceptions.ImproperlyConfigured: Cannot import 'category'. Check that 'api.category.apps.CategoryConfig.name' is correct

Django Installed app and ImproperlyConfigured Error: django.core.exceptions.ImproperlyConfigured

Issue in django.core.exceptions.ImproperlyConfigured