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

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

Description

@ebertti

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions