summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/cache.txt2
-rw-r--r--docs/topics/http/sessions.txt2
-rw-r--r--docs/topics/i18n/translation.txt2
-rw-r--r--docs/topics/settings.txt2
4 files changed, 4 insertions, 4 deletions
diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt
index e8bd5da11a..34034c5541 100644
--- a/docs/topics/cache.txt
+++ b/docs/topics/cache.txt
@@ -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
diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt
index 553fb06a61..b1ec796ed4 100644
--- a/docs/topics/http/sessions.txt
+++ b/docs/topics/http/sessions.txt
@@ -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
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt
index 1ddb853032..43ad657709 100644
--- a/docs/topics/i18n/translation.txt
+++ b/docs/topics/i18n/translation.txt
@@ -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::
diff --git a/docs/topics/settings.txt b/docs/topics/settings.txt
index 7c824b98f7..efc23c6296 100644
--- a/docs/topics/settings.txt
+++ b/docs/topics/settings.txt
@@ -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: