Corrected a problem with the error message when the nominated database backend doesn't exist. Thanks to Ramiro Morales for the report and fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
9dc4ba875f
commit
3958c36319
|
@ -28,7 +28,7 @@ except ImportError, e:
|
||||||
available_backends.sort()
|
available_backends.sort()
|
||||||
if settings.DATABASE_ENGINE not in available_backends:
|
if settings.DATABASE_ENGINE not in available_backends:
|
||||||
raise ImproperlyConfigured, "%r isn't an available database backend. Available options are: %s\nError was: %s" % \
|
raise ImproperlyConfigured, "%r isn't an available database backend. Available options are: %s\nError was: %s" % \
|
||||||
(settings.DATABASE_ENGINE, ", ".join(map(repr, available_backends, e_user)))
|
(settings.DATABASE_ENGINE, ", ".join(map(repr, available_backends)), e_user)
|
||||||
else:
|
else:
|
||||||
raise # If there's some other error, this must be an error in Django itself.
|
raise # If there's some other error, this must be an error in Django itself.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue