0

I am currently working on a multi-tenant django application. Since the requirement of multi-tenancy, for starters, I have created a second database. However, I am unable to create a SuperUser in the newly created database.

I did try the answer listed Django fails to create superuser in other db than 'default' However, no luck. Getting the following output on compile:

django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly co nfigured. Please supply the ENGINE value. Check settings documentation for more details.

Settings.py

DATABASES = {
    'default': {},
    'Alora': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'Alora',
        'USER': 'postgres',
        'PASSWORD': 'somepassword',
    }
}

Python Version

C:\Users\User>python --version
Python 3.6.3

Django Version

C:\Users\User>django-admin --version
2.2

Tried python manage.py createsuperuser --database=Alora. Received the error stated above.

Any help is deeply appreciated.

Thanks!

0 Answers0