Source

django-environments / etc / settings / database.py

Diff from to

etc/settings/database.py

 DATABASE_NAME = PROJECT
 
 DATABASES_DEFAULT = {
-    'default_sqlite': {
+    'sqlite': {
         'ENGINE': 'django.db.backends.sqlite3',
         'NAME': path.join(PROJECT_ROOT, 'db', '%s.sqlite3' % DATABASE_NAME),
     },
-    'default_mysql': {
+    'mysql': {
         'ENGINE': 'django.db.backends.mysql',
         'NAME': DATABASE_NAME,
         'USER': 'mysql',
     },
-    'default_postgres': {
+    'postgres': {
         'ENGINE': 'django.db.backends.postgresql_psycopg2',
         'NAME': DATABASE_NAME,
         'USER': 'postgres',
 
 DATABASES = {
     'default':
-        DATABASES_DEFAULT['default_' + environ.get('DJANGO_DATABASE_TYPE', 'sqlite')]
+        DATABASES_DEFAULT[environ.get('DJANGO_DATABASE_TYPE', 'sqlite')]
 }