From 94cbd67d9eb9712be5518c3d5b4c17eac2e63629 Mon Sep 17 00:00:00 2001 From: arsalan64 <68010697+arsalan64@users.noreply.github.com> Date: Sat, 27 Sep 2025 16:13:13 +0200 Subject: [5.2.x] Fixed #36625 -- Mentioned exit() in tutorial's instruction to restart the shell. Backport of 92d0c21e69901cb7b749040670d3e6611353e1fa from main. --- docs/intro/tutorial02.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'docs/intro/tutorial02.txt') diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt index 6a87d2d01c..e5019f33cf 100644 --- a/docs/intro/tutorial02.txt +++ b/docs/intro/tutorial02.txt @@ -438,8 +438,13 @@ time-zone-related utilities in :mod:`django.utils.timezone`, respectively. If you aren't familiar with time zone handling in Python, you can learn more in the :doc:`time zone support docs `. -Save these changes and start a new Python interactive shell by running -``python manage.py shell`` again: +Save these changes and start a new Python interactive shell. (If a +three-chevron prompt (>>>) indicates you are still in the shell, you need to +exit first using ``exit()``). Run ``python manage.py shell`` again to reload +the models. + +.. RemovedInDjango70Warning: When Python 3.12 is no longer supported, + ``exit()`` can be replaced with ``exit``. .. code-block:: pycon -- cgit v1.3