summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorEmmanuel Katchy <katchyemma@gmail.com>2024-01-18 22:03:20 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2024-01-20 19:43:55 +0100
commit12ffcfc350a19bbfbc203126a9b6c84b5e0d0ba2 (patch)
tree2c1f995690412ef400c71030d91eaed696f00a67 /docs/ref
parent4879907223d70ee1a82474d9286ccfa5dae96971 (diff)
Updated "Dive Into Python" links.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/django-admin.txt8
-rw-r--r--docs/ref/templates/builtins.txt4
2 files changed, 5 insertions, 7 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 7f3fa271c8..3fba67bf20 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -1797,9 +1797,9 @@ allows for the following options by default:
.. django-admin-option:: --pythonpath PYTHONPATH
-Adds the given filesystem path to the Python `import search path`_. If this
-isn't provided, ``django-admin`` will use the :envvar:`PYTHONPATH` environment
-variable.
+Adds the given filesystem path to the Python :py:data:`sys.path` module
+attribute. If this isn't provided, ``django-admin`` will use the
+:envvar:`PYTHONPATH` environment variable.
This option is unnecessary in ``manage.py``, because it takes care of setting
the Python path for you.
@@ -1810,8 +1810,6 @@ Example usage:
django-admin migrate --pythonpath='/home/djangoprojects/myproject'
-.. _import search path: https://diveinto.org/python3/your-first-python-program.html#importsearchpath
-
.. django-admin-option:: --settings SETTINGS
Specifies the settings module to use. The settings module should be in Python
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index 03c8e61d20..a10af9310f 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -2484,8 +2484,8 @@ individual elements of the sequence.
Returns a slice of the list.
-Uses the same syntax as Python's list slicing. See
-https://diveinto.org/python3/native-datatypes.html#slicinglists for an
+Uses the same syntax as Python's list slicing. See the `Python documentation
+<https://docs.python.org/3/tutorial/introduction.html#lists>`_ for an
introduction.
Example: