summaryrefslogtreecommitdiff
path: root/docs/_ext/djangodocs.py
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 14:37:44 -0400
commitc99d379f534817edccbe8b23a235e11781508590 (patch)
treeedc7873a9e233ea9ccb0743d5e3c0e1b93e7ae7e /docs/_ext/djangodocs.py
parenta0d63b02c34e6d18d7219cce4d828f71432265e9 (diff)
downloaddjango-c99d379f534817edccbe8b23a235e11781508590.tar.gz
Updated contributing tutorial's virtual environment instructions.
Diffstat (limited to 'docs/_ext/djangodocs.py')
-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('$ '):