Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
senordev opened this Issue · 1 comment

3 participants

@senordev

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
@patovala

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
Something went wrong with that request. Please try again.