Commits

Anonymous committed 3538e2f

added warning about db engines not supported by south

  • Participants
  • Parent commits ab21b72

Comments (0)

Files changed (1)

File south/db/__init__.py

     db_engines.update(getattr(settings, "SOUTH_DATABASE_ADAPTERS", {}))
     # Check there's no None engines, or...
     for alias, engine in db_engines.items():
-        if engine is None:
+        # Check for None in south.db.None
+        if engine.split('.')[-1] == "None":
             # They've used a backend we don't support
             sys.stderr.write(
                 (
-                    "There is no South database module for your database backend '%s'. " + \
-                    "Please either choose a supported database, check for " + \
-                    "SOUTH_DATABASE_ADAPTER[S] settings, " + \
-                    "or remove South from INSTALLED_APPS.\n"
+                    "WARNING: There is no South database module for your database backend '%s'.\n"
                 ) % (settings.DATABASES[alias]['ENGINE'],)
             )
-            sys.exit(1)
+            # Remove unsupported backend from south engine list
+            db_engines.pop(alias)
 
 # Now, turn that into a dict of <alias: south db module>
 dbs = {}