1. Luke Plant
  2. south

Commits

Andrew Godwin  committed efc1409

Django 1.1 settings-getting, for 0.7 branch

  • Participants
  • Parent commits bd5a0ce
  • Branches 0.7

Comments (0)

Files changed (1)

File south/db/generic.py

View file
  • Ignore whitespace
         """
         setting_name = setting_name.upper()
         connection = self._get_connection() 
-        if not hasattr(connection, 'settings_dict'):
+        try:                                                 
+            from django.db import connections                
+        except ImportError:
             # Django 1.1 and below
             return getattr(settings, "DATABASE_%s" % setting_name) 
         else: