1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #33842 -- Used :source: role for links to repo files on GitHub.

This commit is contained in:
Ramil Yanbulatov
2022-06-30 15:08:49 +03:00
committed by Carlton Gibson
parent f3a06b06b5
commit c6290bae9d
17 changed files with 28 additions and 27 deletions

View File

@@ -438,7 +438,7 @@ cache backend with Django, use the Python import path as the
If you're building your own backend, you can use the standard cache backends
as reference implementations. You'll find the code in the
``django/core/cache/backends/`` directory of the Django source.
:source:`django/core/cache/backends/` directory of the Django source.
Note: Without a really compelling reason, such as a host that doesn't support
them, you should stick to the cache backends included with Django. They've

View File

@@ -526,7 +526,7 @@ calls ``save()`` and loops until an unused ``session_key`` is generated.
If you're using the ``django.contrib.sessions.backends.db`` backend, each
session is a normal Django model. The ``Session`` model is defined in
``django/contrib/sessions/models.py``. Because it's a normal model, you can
:source:`django/contrib/sessions/models.py`. Because it's a normal model, you can
access sessions using the normal Django database API::
>>> from django.contrib.sessions.models import Session

View File

@@ -2080,7 +2080,7 @@ translations for the same literal:
#. Then, it looks for and uses if it exists a ``locale`` directory in each
of the installed apps listed in :setting:`INSTALLED_APPS`. The ones
appearing first have higher precedence than the ones appearing later.
#. Finally, the Django-provided base translation in ``django/conf/locale``
#. Finally, the Django-provided base translation in :source:`django/conf/locale`
is used as a fallback.
.. seealso::

View File

@@ -90,7 +90,7 @@ Default settings
A Django settings file doesn't have to define any settings if it doesn't need
to. Each setting has a sensible default value. These defaults live in the
module :file:`django/conf/global_settings.py`.
module :source:`django/conf/global_settings.py`.
Here's the algorithm Django uses in compiling settings: