diff options
| author | Ramil Yanbulatov <rayman1104@gmail.com> | 2022-06-30 15:08:49 +0300 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2022-08-09 14:44:51 +0200 |
| commit | c6290bae9da94234091673fa57ea20411325a9e8 (patch) | |
| tree | a3aafea2b59d053aaaf44d0f23fa6db29c1c2e88 /docs/ref/contrib/admin | |
| parent | f3a06b06b59b3d24d5c2c14a34a8051879203c45 (diff) | |
Fixed #33842 -- Used :source: role for links to repo files on GitHub.
Diffstat (limited to 'docs/ref/contrib/admin')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 9ea73fdefb..640a8f3f0e 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -2591,8 +2591,8 @@ templates for a specific app, or a specific model. Set up your projects admin template directories ----------------------------------------------- -The admin template files are located in the ``contrib/admin/templates/admin`` -directory. +The admin template files are located in the +:source:`django/contrib/admin/templates/admin` directory. In order to override one or more of them, first create an ``admin`` directory in your project's ``templates`` directory. This can be any of the directories @@ -2611,7 +2611,7 @@ directory, so make sure you name the directory in all lowercase if you are going to run your app on a case-sensitive filesystem. To override an admin template for a specific app, copy and edit the template -from the ``django/contrib/admin/templates/admin`` directory, and save it to one +from the :source:`django/contrib/admin/templates/admin` directory, and save it to one of the directories you just created. For example, if we wanted to add a tool to the change list view for all the @@ -2729,10 +2729,10 @@ override to your project: {% endblock %} The list of CSS variables are defined at -:file:`django/contrib/admin/static/admin/css/base.css`. +:source:`django/contrib/admin/static/admin/css/base.css`. Dark mode variables, respecting the `prefers-color-scheme`_ media query, are -defined at :file:`django/contrib/admin/static/admin/css/dark_mode.css`. This is +defined at :source:`django/contrib/admin/static/admin/css/dark_mode.css`. This is linked to the document in ``{% block dark-mode-vars %}``. .. _prefers-color-scheme: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme |
