      The dictionary is in the format {command_name: app_name}. Key-value
      pairs from this dictionary can then be used in calls to 
      load_command_class(app_name, command_name)
      
      The dictionary is cached on the first call, and reused on subsequent
      calls.
      """
      global _commands
      if _commands is None:
 
</s> remove             klass = load_command_class(app_name, subcommand)
 </s> add             if isinstance(app_name, BaseCommand): 
                # If the app_name is already loaded, use it directly.
                klass = app_name
            else:
                klass = load_command_class(app_name, subcommand) </s> remove         klass = load_command_class(app_name, name)
 </s> add         if isinstance(app_name, BaseCommand): 
            # If the command is already loaded, use it directly.
            klass = app_name
        else:
            klass = load_command_class(app_name, subcommand)
    If a specific version of a command must be loaded (e.g., with the
    startapp command), the instantiated module can be placed in the
    dictionary in place of the application name.
    
      The dictionary is in the format {command_name: app_name}. Key-value
      pairs from this dictionary can then be used in calls to 
      load_command_class(app_name, command_name)
      
    If a specific version of a command must be loaded (e.g., with the
    startapp command), the instantiated module can be placed in the
    dictionary in place of the application name.
    
      The dictionary is cached on the first call, and reused on subsequent
      calls.
      """
      global _commands
      if _commands is None:
keep keep keep add keep keep keep keep keep
 Fixed #5564 -- Fixed handling of the ProjectCommand used by startapp.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6402 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/core/management/__init__.py