1 from django.conf import settings as django_settings
3 def get_database_engine():
5 database_type = django_settings.DATABASE_ENGINE
7 if len(database_type) == 0:
8 raise Exception('Empty old style database engine')
11 database_type = django_settings.DATABASES['default']['ENGINE']
13 database_type = 'unknown'
15 return str(database_type)