Skip to content

Commit 494ba27

Browse files
authored
Changed some doc links to use intersphinx.
1 parent f8ef5f2 commit 494ba27

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

docs/howto/windows.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ It is best practice to provide a dedicated environment for each Django project
5757
you create. There are many options to manage environments and packages within
5858
the Python ecosystem, some of which are recommended in the `Python
5959
documentation <https://packaging.python.org/guides/tool-recommendations/>`_.
60-
Python itself comes with `venv`_ for managing environments which we will use
61-
for this guide.
60+
Python itself comes with :doc:`venv <python:tutorial/venv>` for managing
61+
environments which we will use for this guide.
6262

6363
To create a virtual environment for your project, open a new command prompt,
6464
navigate to the folder where you want to create your project and then enter the
@@ -75,8 +75,6 @@ The virtual environment will be activated and you'll see "(project-name)" next
7575
to the command prompt to designate that. Each time you start a new command
7676
prompt, you'll need to activate the environment again.
7777

78-
.. _venv: https://docs.python.org/3/tutorial/venv.html
79-
8078
Install Django
8179
==============
8280

docs/topics/db/queries.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,8 +1315,9 @@ Using the models at the top of this page, for example, an ``Entry`` object ``e``
13151315
can get its associated ``Blog`` object by accessing the ``blog`` attribute:
13161316
``e.blog``.
13171317

1318-
(Behind the scenes, this functionality is implemented by Python descriptors_.
1319-
This shouldn't really matter to you, but we point it out here for the curious.)
1318+
(Behind the scenes, this functionality is implemented by Python
1319+
:doc:`descriptors <python:howto/descriptor>`. This shouldn't really matter to
1320+
you, but we point it out here for the curious.)
13201321

13211322
Django also creates API accessors for the "other" side of the relationship --
13221323
the link from the related model to the model that defines the relationship.
@@ -1326,8 +1327,6 @@ For example, a ``Blog`` object ``b`` has access to a list of all related
13261327
All examples in this section use the sample ``Blog``, ``Author`` and ``Entry``
13271328
models defined at the top of this page.
13281329

1329-
.. _descriptors: https://docs.python.org/howto/descriptor.html
1330-
13311330
One-to-many relationships
13321331
-------------------------
13331332

0 commit comments

Comments
 (0)