Ticket #1989: action_mapping.patch
File action_mapping.patch, 1.0 KB (added by , 18 years ago) |
---|
-
django/core/management.py
1207 1207 if action not in NO_SQL_TRANSACTION: 1208 1208 print style.SQL_KEYWORD("COMMIT;") 1209 1209 1210 def execute_manager(settings_mod ):1210 def execute_manager(settings_mod, action_mapping = DEFAULT_ACTION_MAPPING): 1211 1211 # Add this project to sys.path so that it's importable in the conventional 1212 1212 # way. For example, if this file (manage.py) lives in a directory 1213 1213 # "myproject", this code would add "/path/to/myproject" to sys.path. … … 1220 1220 # Set DJANGO_SETTINGS_MODULE appropriately. 1221 1221 os.environ['DJANGO_SETTINGS_MODULE'] = '%s.settings' % project_name 1222 1222 1223 action_mapping = DEFAULT_ACTION_MAPPING.copy()1223 action_mapping = action_mapping.copy() 1224 1224 1225 1225 # Remove the "startproject" command from the action_mapping, because that's 1226 1226 # a django-admin.py command, not a manage.py command.