Commits

Andrew Godwin committed efc1409

Django 1.1 settings-getting, for 0.7 branch

Comments (0)

Files changed (1)

         """
         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: