'settings' object has no attribute 'database_engine' #143

Closed
ghost opened this Issue Jun 5, 2012 · 1 comment

Projects

None yet

2 participants

@ghost
ghost commented Jun 5, 2012

I was getting this error:
'Settings' object has no attribute 'DATABASE_ENGINE'

I am running:

  • python 2.7.3
  • Apache
  • MySQL
  • Django dev

It was being caused by line 727 of helpdesk/views/staff.py

if context.has_key('query') and settings.DATABASE_ENGINE.startswith('sqlite'):

I changed it to this to get it to work:

if context.has_key('query') and settings.DATABASES['default']['ENGINE'].endswith('sqlite'):

It may not be the best solution, but it's working on my setup.

@rossp rossp closed this in 5640e84 Jun 11, 2012

Is this fix in the trunk already? I have the same problem. Do I need to update mi local copy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment