=== modified file 'django/core/management/__init__.py'
|
|
|
248 | 248 | else: |
249 | 249 | klass = load_command_class(app_name, subcommand) |
250 | 250 | except KeyError: |
251 | | sys.stderr.write("Unknown command: %r\nType '%s help' for usage.\n" % \ |
| 251 | sys.stdout.write("Unknown command: %r\nType '%s help' for usage.\n" % \ |
252 | 252 | (subcommand, self.prog_name)) |
253 | 253 | sys.exit(1) |
254 | 254 | return klass |
… |
… |
|
273 | 273 | try: |
274 | 274 | subcommand = self.argv[1] |
275 | 275 | except IndexError: |
276 | | sys.stderr.write("Type '%s help' for usage.\n" % self.prog_name) |
| 276 | sys.stdout.write("Type '%s help' for usage.\n" % self.prog_name) |
277 | 277 | sys.exit(1) |
278 | 278 | |
279 | 279 | if subcommand == 'help': |
… |
… |
|
281 | 281 | self.fetch_command(args[2]).print_help(self.prog_name, args[2]) |
282 | 282 | else: |
283 | 283 | parser.print_lax_help() |
284 | | sys.stderr.write(self.main_help_text() + '\n') |
| 284 | sys.stdout.write(self.main_help_text() + '\n') |
285 | 285 | sys.exit(1) |
286 | 286 | # Special-cases: We want 'django-admin.py --version' and |
287 | 287 | # 'django-admin.py --help' to work, for backwards compatibility. |
… |
… |
|
290 | 290 | pass |
291 | 291 | elif self.argv[1:] == ['--help']: |
292 | 292 | parser.print_lax_help() |
293 | | sys.stderr.write(self.main_help_text() + '\n') |
| 293 | sys.stdout.write(self.main_help_text() + '\n') |
294 | 294 | else: |
295 | 295 | self.fetch_command(subcommand).run_from_argv(self.argv) |
296 | 296 | |