django-backup-old
django-backup-old copied to clipboard
NameError: global name 'CommandError' is not defined
this is my database configuration:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'schemaname',
'USER': 'user',
'PASSWORD': 'pass',
'HOST': '',
'PORT': '',
}
}
and this is the exception:
raise CommandError('Backup in %s engine not implemented' % self.engine)
NameError: global name 'CommandError' is not defined
when I print self.engine to debug, I get this value:
django.db.backends.mysql
SO: Windows 8 Python 2.7.4 Django: 1.4.3
Odd. On line 233 what is the value of CommandError and self.engine ?
self.engine -> django.db.backends.mysql
CommandError -> global name 'CommandError' is not defined