summaryrefslogtreecommitdiff
path: root/docs/_ext
diff options
context:
space:
mode:
authorThomas Grainger <tagrain@gmail.com>2018-09-19 10:41:22 +0100
committerTim Graham <timograham@gmail.com>2018-09-19 15:04:53 -0400
commit1d9725504c2a17f55f253e3ff4cff838ee1fe708 (patch)
tree99d87864615880679c1c1447cf16cce08269af0d /docs/_ext
parent322b70f605d4097e6d1dbfc1b544e9ffdfd4fd49 (diff)
[2.1.x] Updated contributing tutorial's virtual environment instructions.
Backport of c99d379f534817edccbe8b23a235e11781508590 from master
Diffstat (limited to 'docs/_ext')
-rw-r--r--docs/_ext/djangodocs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py
index b91ccaa37c..19d142b9db 100644
--- a/docs/_ext/djangodocs.py
+++ b/docs/_ext/djangodocs.py
@@ -320,6 +320,8 @@ class ConsoleDirective(CodeBlock):
return 'runtests.py ' + args_to_win(line[15:])
if line.startswith('$ ./'):
return args_to_win(line[4:])
+ if line.startswith('$ python3'):
+ return 'py ' + args_to_win(line[9:])
if line.startswith('$ python'):
return 'py ' + args_to_win(line[8:])
if line.startswith('$ '):