summaryrefslogtreecommitdiff
path: root/django/db/__init__.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2009-03-13 04:45:11 +0000
committerAdrian Holovaty <adrian@holovaty.com>2009-03-13 04:45:11 +0000
commita21770e9147198ac8f6dcf03033e3f48a004a89c (patch)
tree3e4aa92dc878bce54b58a2259b16b228751cb12d /django/db/__init__.py
parentd8744cca265243386977e4fbea671a72e6550ac7 (diff)
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
Diffstat (limited to 'django/db/__init__.py')
-rw-r--r--django/db/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/db/__init__.py b/django/db/__init__.py
index 7d7f66290b..da1544f8cd 100644
--- a/django/db/__init__.py
+++ b/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()