Author: adrian
Date: 2006-09-11 13:42:56 -0500 (Mon, 11 Sep 2006)
New Revision: 3751

Modified:
   django/trunk/django/core/management.py
Log:
Fixed #2689 -- Got 'manage.py diffsettings' working again. Thanks for the 
patch, Jeong-Min Lee

Modified: django/trunk/django/core/management.py
===================================================================
--- django/trunk/django/core/management.py      2006-09-11 18:41:05 UTC (rev 
3750)
+++ django/trunk/django/core/management.py      2006-09-11 18:42:56 UTC (rev 
3751)
@@ -492,7 +492,7 @@
     # to do at this point.
     for app in models.get_apps():
         dispatcher.send(signal=signals.post_syncdb, sender=app,
-            app=app, created_models=created_models, 
+            app=app, created_models=created_models,
             verbosity=verbosity, interactive=interactive)
 
         # Install initial data for the app (but only if this is a model we've
@@ -552,7 +552,7 @@
     # Inspired by Postfix's "postconf -n".
     from django.conf import settings, global_settings
 
-    user_settings = _module_to_dict(settings)
+    user_settings = _module_to_dict(settings._target)
     default_settings = _module_to_dict(global_settings)
 
     output = []
@@ -904,7 +904,7 @@
             rel_name = RelatedObject(f.rel.to, cls, f).get_accessor_name()
             rel_query_name = f.related_query_name()
             # If rel_name is none, there is no reverse accessor.
-            # (This only occurs for symmetrical m2m relations to self). 
+            # (This only occurs for symmetrical m2m relations to self).
             # If this is the case, there are no clashes to check for this 
field, as
             # there are no reverse descriptors for this field.
             if rel_name is not None:
@@ -1172,7 +1172,7 @@
         app_list = get_apps()
     else:
         app_list = [get_app(app_label) for app_label in app_labels]
-    
+
     test_path = settings.TEST_RUNNER.split('.')
     # Allow for Python 2.5 relative paths
     if len(test_path) > 1:
@@ -1181,7 +1181,7 @@
         test_module_name = '.'
     test_module = __import__(test_module_name, [],[],test_path[-1])
     test_runner = getattr(test_module, test_path[-1])
-    
+
     test_runner(app_list, verbosity)
 test.help_doc = 'Runs the test suite for the specified applications, or the 
entire site if no apps are specified'
 test.args = '[--verbosity] ' + APP_ARGS


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to