First check out the version of Django:
go into your application and run
$./manage.py shell import django django.get_version()
In Django> 1.4, the previously deleted deprecated DATABASE_ENGINE setting is removed. (This deviation / deletion of the tic / toc-cycle type is typical of a Django project.)
I use the following code to fix obsolete scripts, which for some reason should be obsolete ...
if not ((hasattr(settings, 'DATABASE_ENGINE') and (settings.DATABASES['default']['ENGINE'] or 'ENGINE' in [x for y in settings.DATABASES.itervalues() for x in y]))): try: setattr(settings, 'DATABASE_ENGINE', settings.DATABASES['default']['ENGINE']) except: raise Exception('No default ENGINE set in settings.DATABASES!')
Hope this helps.
Lorenz Lo Sauer Jul 18 '13 at 17:48 2013-07-18 17:48
source share