Fixed typo in 'incorrect backend' database error message
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4067 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
83c40fb922
commit
ab6fd7328f
|
@ -18,7 +18,7 @@ except ImportError, e:
|
|||
available_backends = [f for f in os.listdir(backend_dir) if not f.startswith('_') and not f.startswith('.') and not f.endswith('.py') and not f.endswith('.pyc')]
|
||||
available_backends.sort()
|
||||
if settings.DATABASE_ENGINE not in available_backends:
|
||||
raise ImproperlyConfigured, "%r isn't an available database backend. vailable options are: %s" % \
|
||||
raise ImproperlyConfigured, "%r isn't an available database backend. Available options are: %s" % \
|
||||
(settings.DATABASE_ENGINE, ", ".join(map(repr, available_backends)))
|
||||
else:
|
||||
raise # If there's some other error, this must be an error in Django itself.
|
||||
|
|
Loading…
Reference in New Issue