Commits

Vincent Hillenbrink (smooth)  committed 958d7a8

etc.settings.DATABASES_DEFAULT

  • Participants
  • Parent commits ac525eb

Comments (0)

Files changed (1)

File 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')]
 }