[Answered ]-Django throwing improper database configuration error

2👍

from django.conf import settings
settings.configure()

configure Django with default settings (not Your app settings).

Solution 1

from HealthNet import settings as my_settings
from django.conf import settings
settings.configure(default_settings=my_settings)

Solution 2

Remove following lines:

import django
from django.conf import settings
settings.configure()
django.setup()

Django uses autoconfigure using DJANGO_SETTINGS_MODULE variable.

Leave a comment