skip to Main Content

Yesterday I switched to Ubuntu 24.04 LTS from windows and having an issue with my django project and tried every suggestion on the web but no luck. I’m getting below issue:

django.core.exceptions.ImproperlyConfigured: 'django.db.backends.postgresql' 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', 'sqlite3'

Most of the suggesion on the web telling update django but I’m already using the latest version 5.0.4

Also postgresql is working fine. I’m able to connect it.

2

Answers


  1. Chosen as BEST ANSWER

    Deleted existing venv and recreated it and it worked. No idea.


  2. The value is django.db.backends.postgresql_psycopg2, not just django.db.backends.postgresql

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search