Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #15621 -- Fixed potentially confusing error message in db backe…

…nd loading. Thanks, keegan_csmith

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15871 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6091f0ead37b4339a781c731abee85ae00ab0e99 1 parent a0878b5
Adrian Holovaty authored March 17, 2011

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  django/db/utils.py
2  django/db/utils.py
@@ -41,6 +41,8 @@ def load_backend(backend_name):
41 41
                         and not f.startswith('.')]
42 42
             except EnvironmentError:
43 43
                 available_backends = []
  44
+            if backend_name.startswith('django.db.backends.'):
  45
+                backend_name = backend_name[19:] # See #15621.
44 46
             if backend_name not in available_backends:
45 47
                 error_msg = ("%r isn't an available database backend. \n" +
46 48
                     "Try using django.db.backends.XXX, where XXX is one of:\n    %s\n" +

0 notes on commit 6091f0e

Please sign in to comment.
Something went wrong with that request. Please try again.