Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2689 -- Got 'manage.py diffsettings' working again. Thanks for…

… the patch, Jeong-Min Lee

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3751 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 086992c7390432b375c3aa49ff396941fc724a02 1 parent ecf6a35
Adrian Holovaty authored September 11, 2006

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  django/core/management.py
10  django/core/management.py
@@ -492,7 +492,7 @@ def syncdb(verbosity=2, interactive=True):
492 492
     # to do at this point.
493 493
     for app in models.get_apps():
494 494
         dispatcher.send(signal=signals.post_syncdb, sender=app,
495  
-            app=app, created_models=created_models, 
  495
+            app=app, created_models=created_models,
496 496
             verbosity=verbosity, interactive=interactive)
497 497
 
498 498
         # Install initial data for the app (but only if this is a model we've
@@ -552,7 +552,7 @@ def diffsettings():
552 552
     # Inspired by Postfix's "postconf -n".
553 553
     from django.conf import settings, global_settings
554 554
 
555  
-    user_settings = _module_to_dict(settings)
  555
+    user_settings = _module_to_dict(settings._target)
556 556
     default_settings = _module_to_dict(global_settings)
557 557
 
558 558
     output = []
@@ -904,7 +904,7 @@ def get_validation_errors(outfile, app=None):
904 904
             rel_name = RelatedObject(f.rel.to, cls, f).get_accessor_name()
905 905
             rel_query_name = f.related_query_name()
906 906
             # If rel_name is none, there is no reverse accessor.
907  
-            # (This only occurs for symmetrical m2m relations to self). 
  907
+            # (This only occurs for symmetrical m2m relations to self).
908 908
             # If this is the case, there are no clashes to check for this field, as
909 909
             # there are no reverse descriptors for this field.
910 910
             if rel_name is not None:
@@ -1172,7 +1172,7 @@ def test(verbosity, app_labels):
1172 1172
         app_list = get_apps()
1173 1173
     else:
1174 1174
         app_list = [get_app(app_label) for app_label in app_labels]
1175  
-    
  1175
+
1176 1176
     test_path = settings.TEST_RUNNER.split('.')
1177 1177
     # Allow for Python 2.5 relative paths
1178 1178
     if len(test_path) > 1:
@@ -1181,7 +1181,7 @@ def test(verbosity, app_labels):
1181 1181
         test_module_name = '.'
1182 1182
     test_module = __import__(test_module_name, [],[],test_path[-1])
1183 1183
     test_runner = getattr(test_module, test_path[-1])
1184  
-    
  1184
+
1185 1185
     test_runner(app_list, verbosity)
1186 1186
 test.help_doc = 'Runs the test suite for the specified applications, or the entire site if no apps are specified'
1187 1187
 test.args = '[--verbosity] ' + APP_ARGS

0 notes on commit 086992c

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