Django

Code

Changeset 3751

Show
Ignore:
Timestamp:
09/11/06 13:42:56 (2 years ago)
Author:
adrian
Message:

Fixed #2689 -- Got 'manage.py diffsettings' working again. Thanks for the patch, Jeong-Min Lee

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/management.py

    r3734 r3751  
    493493    for app in models.get_apps(): 
    494494        dispatcher.send(signal=signals.post_syncdb, sender=app, 
    495             app=app, created_models=created_models,  
     495            app=app, created_models=created_models, 
    496496            verbosity=verbosity, interactive=interactive) 
    497497 
     
    553553    from django.conf import settings, global_settings 
    554554 
    555     user_settings = _module_to_dict(settings
     555    user_settings = _module_to_dict(settings._target
    556556    default_settings = _module_to_dict(global_settings) 
    557557 
     
    905905            rel_query_name = f.related_query_name() 
    906906            # 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). 
    908908            # If this is the case, there are no clashes to check for this field, as 
    909909            # there are no reverse descriptors for this field. 
     
    11731173    else: 
    11741174        app_list = [get_app(app_label) for app_label in app_labels] 
    1175      
     1175 
    11761176    test_path = settings.TEST_RUNNER.split('.') 
    11771177    # Allow for Python 2.5 relative paths 
     
    11821182    test_module = __import__(test_module_name, [],[],test_path[-1]) 
    11831183    test_runner = getattr(test_module, test_path[-1]) 
    1184      
     1184 
    11851185    test_runner(app_list, verbosity) 
    11861186test.help_doc = 'Runs the test suite for the specified applications, or the entire site if no apps are specified'