[Answer]-Getting invalid syntax while creating new app in django

1👍

You haven’t closed the DATABASES dictionary before defining next settings. Should be:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'xxxxx',
        'USER': 'xxx',
        'PASSWORD': 'xxx',
        'HOST': 'mysql.xxxxxx',
        'PORT': '',
    }
}

LANGUAGE_CODE = 'fr-fr'
TIME_ZONE = 'Europe/Paris'
USE_I18N = True
USE_L10N = True
USE_TZ = True
👤alecxe

Leave a comment