mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #20910 -- Replaced snippet directive with code-block.
This commit is contained in:
parent
f8ff529ee3
commit
c49ea6f591
32 changed files with 234 additions and 375 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue