]> git.openstreetmap.org Git - osqa.git/blob - forum/base.py
redirect to the question page if accept request has been made from a non-AJAX context...
[osqa.git] / forum / base.py
1 from django.conf import settings as django_settings
2
3 def get_database_engine():
4     try:
5         database_type = django_settings.DATABASE_ENGINE
6
7         if len(database_type) == 0:
8             raise Exception('Empty old style database engine')
9     except:
10         try:
11             database_type = django_settings.DATABASES['default']['ENGINE']
12         except:
13             database_type = 'unknown'
14
15     return str(database_type)