Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #8706 -- Improved the way we detect available database backends.

Thanks, victor@egenix.com.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 238477f90cb667cbe2656d46ece275ffad6fb216 1 parent 152d517
Malcolm Tredinnick authored March 01, 2009

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

  1. 3  django/db/__init__.py
3  django/db/__init__.py
@@ -25,7 +25,8 @@
25 25
         # listing all possible (built-in) database backends.
26 26
         backend_dir = os.path.join(__path__[0], 'backends')
27 27
         try:
28  
-            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')]
  28
+            available_backends = [f for f in os.listdir(backend_dir)
  29
+                    if os.path.isdir(os.path.join(backend_dir, f))]
29 30
         except EnvironmentError:
30 31
             available_backends = []
31 32
         available_backends.sort()

0 notes on commit 238477f

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