diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index 77e24ff0eb..811f1e4ec9 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -335,11 +335,11 @@ class ConsoleDirective(CodeBlock): if line.startswith("$ # "): return "REM " + args_to_win(line[4:]) if line.startswith("$ ./manage.py"): - return "manage.py " + args_to_win(line[13:]) + return "py manage.py " + args_to_win(line[13:]) if line.startswith("$ manage.py"): - return "manage.py " + args_to_win(line[11:]) + return "py manage.py " + args_to_win(line[11:]) if line.startswith("$ ./runtests.py"): - return "runtests.py " + args_to_win(line[15:]) + return "py runtests.py " + args_to_win(line[15:]) if line.startswith("$ ./"): return args_to_win(line[4:]) if line.startswith("$ python3"):