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

[2.1.x] Refs #20910 -- Replaced snippet directive with code-block.

Backport of c49ea6f591 from master
This commit is contained in:
Curtis Maloney
2018-09-11 03:00:34 +10:00
committed by Tim Graham
parent 2b2474b75d
commit 1853e2dbf2
32 changed files with 234 additions and 375 deletions

View File

@@ -325,8 +325,8 @@ following structure::
Let's take a look inside a couple of those files:
.. snippet::
:filename: runtests.py
.. code-block:: python
:caption: runtests.py
#!/usr/bin/env python
import os
@@ -353,8 +353,8 @@ necessary to use the Django test runner. You may want to add
command-line options for controlling verbosity, passing in specific test
labels to run, etc.
.. snippet::
:filename: tests/test_settings.py
.. code-block:: python
:caption: tests/test_settings.py
SECRET_KEY = 'fake-key'
INSTALLED_APPS = [