Skip to content
This repository has been archived by the owner on Feb 12, 2020. It is now read-only.

NameError: global name 'CommandError' is not defined #8

Open
ebertti opened this issue Sep 1, 2013 · 2 comments
Open

NameError: global name 'CommandError' is not defined #8

ebertti opened this issue Sep 1, 2013 · 2 comments

Comments

@ebertti
Copy link

ebertti commented Sep 1, 2013

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

@andybak
Copy link
Owner

andybak commented Sep 5, 2013

Odd. On line 233 what is the value of CommandError and self.engine ?

@ebertti
Copy link
Author

ebertti commented Sep 5, 2013

self.engine -> django.db.backends.mysql

CommandError -> global name 'CommandError' is not defined

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants