[Answer]-“settings.DATABASES is improperly configured” error performing syncdb with django 1.6.8

1👍

You haven’t specified NAME of the database.

Edit

First of all you have to create a database with whatever database admin tool you are using. Then set it’s name in your settings.py NAME variable.

Example:

If you create a new database called mysiteDB, then in your settings.py file, you need to do this:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', 
        'NAME': 'mysiteDB',
        'USER': 'root',
        'PASSWORD': '',
        'HOST': 'localhost',   # Or an IP Address that your DB is hosted on
        'PORT': '3306',
    }
}
👤xyres

Leave a comment