[Django]-Django manage.py raising ImproperlyConfigured error

10👍

DATABASE_NAME is deprecated since django 1.2 so if you’re using newer version, you should use the new way of defining databases:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': 'mydatabase'
    }
}

4👍

define db name is settings.py

DATABASE
Below is an example

DATABASES = {
    'default': {
        'ENGINE': 'mysql',
        'NAME': 'xyz', # db name
        'USER': 'root',
        'PASSWORD': 'password',
        'HOST': '',
        'PORT': '',
    }
}
👤sush

0👍

Leave a comment