summaryrefslogtreecommitdiff
path: root/docs/ref/databases.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/databases.txt')
-rw-r--r--docs/ref/databases.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt
index 0f183bfe20..ba5692d9e5 100644
--- a/docs/ref/databases.txt
+++ b/docs/ref/databases.txt
@@ -120,7 +120,7 @@ password from the `password file`_, you must specify them in the
:setting:`OPTIONS` part of your database configuration in :setting:`DATABASES`:
.. code-block:: python
- :caption: settings.py
+ :caption: ``settings.py``
DATABASES = {
'default': {
@@ -133,7 +133,7 @@ password from the `password file`_, you must specify them in the
}
.. code-block:: text
- :caption: .pg_service.conf
+ :caption: ``.pg_service.conf``
[my_service]
host=localhost
@@ -142,7 +142,7 @@ password from the `password file`_, you must specify them in the
port=5432
.. code-block:: text
- :caption: .my_pgpass
+ :caption: ``.my_pgpass``
localhost:5432:NAME:USER:PASSWORD
@@ -1079,7 +1079,7 @@ example of subclassing the PostgreSQL engine to change a feature class
``allows_group_by_selected_pks_on_model``:
.. code-block:: python
- :caption: mysite/mydbengine/base.py
+ :caption: ``mysite/mydbengine/base.py``
from django.db.backends.postgresql import base, features