Skip to content

Commit 7c2ff0f

Browse files
arsalan64jacobtylerwalls
authored andcommitted
[6.0.x] Fixed #36625 -- Mentioned exit() in tutorial's instruction to restart the shell.
Backport of 92d0c21 from main.
1 parent 0fa339c commit 7c2ff0f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/intro/tutorial02.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,13 @@ time-zone-related utilities in :mod:`django.utils.timezone`, respectively. If
441441
you aren't familiar with time zone handling in Python, you can learn more in
442442
the :doc:`time zone support docs </topics/i18n/timezones>`.
443443

444-
Save these changes and start a new Python interactive shell by running
445-
``python manage.py shell`` again:
444+
Save these changes and start a new Python interactive shell. (If a
445+
three-chevron prompt (>>>) indicates you are still in the shell, you need to
446+
exit first using ``exit()``). Run ``python manage.py shell`` again to reload
447+
the models.
448+
449+
.. RemovedInDjango70Warning: When Python 3.12 is no longer supported,
450+
``exit()`` can be replaced with ``exit``.
446451

447452
.. code-block:: pycon
448453

0 commit comments

Comments
 (0)