1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Standardized Windows console commands to use py for Python scripts in docs.

This commit is contained in:
Clifford Gama 2024-09-20 13:39:54 +02:00
parent 1857b6663b
commit d59c7951eb
No known key found for this signature in database
GPG Key ID: BF895AA45E520E21

View File

@ -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"):