Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improved the error message in case of an invalid DATABASE_BACKEND to …

…ignore '.svn' directories in displaying the list of valid backends

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a21770e9147198ac8f6dcf03033e3f48a004a89c 1 parent d8744cc
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/db/__init__.py
View
3  django/db/__init__.py
@@ -25,7 +25,8 @@ def load_backend(backend_name):
backend_dir = os.path.join(__path__[0], 'backends')
try:
available_backends = [f for f in os.listdir(backend_dir)
- if os.path.isdir(os.path.join(backend_dir, f))]
+ if os.path.isdir(os.path.join(backend_dir, f))
+ and not f.startswith('.')]
except EnvironmentError:
available_backends = []
available_backends.sort()
Please sign in to comment.
Something went wrong with that request. Please try again.