summaryrefslogtreecommitdiff
path: root/docs/howto
diff options
context:
space:
mode:
authorEd Henderson <ed@sharpertool.com>2016-06-02 12:56:13 -0700
committerTim Graham <timograham@gmail.com>2016-06-03 11:44:34 -0400
commit4a4d7f980e2a66756e1e424f7648dcd28ff765b7 (patch)
tree3bb4acb494a41b3ef9ec59b9ab5670cbc46ff9ac /docs/howto
parent38575b007a722d6af510ea46d46393a4cda9ca29 (diff)
Fixed #26021 -- Applied hanging indentation to docs.
Diffstat (limited to 'docs/howto')
-rw-r--r--docs/howto/custom-management-commands.txt6
-rw-r--r--docs/howto/error-reporting.txt10
-rw-r--r--docs/howto/static-files/deployment.txt6
3 files changed, 13 insertions, 9 deletions
diff --git a/docs/howto/custom-management-commands.txt b/docs/howto/custom-management-commands.txt
index 5c13e47c11..d47fecbd60 100644
--- a/docs/howto/custom-management-commands.txt
+++ b/docs/howto/custom-management-commands.txt
@@ -106,11 +106,13 @@ options can be added in the :meth:`~BaseCommand.add_arguments` method like this:
parser.add_argument('poll_id', nargs='+', type=int)
# Named (optional) arguments
- parser.add_argument('--delete',
+ parser.add_argument(
+ '--delete',
action='store_true',
dest='delete',
default=False,
- help='Delete poll instead of closing it')
+ help='Delete poll instead of closing it',
+ )
def handle(self, *args, **options):
# ...
diff --git a/docs/howto/error-reporting.txt b/docs/howto/error-reporting.txt
index d4de4cc708..7928d193d5 100644
--- a/docs/howto/error-reporting.txt
+++ b/docs/howto/error-reporting.txt
@@ -202,10 +202,12 @@ filtered out of error reports in a production environment (that is, where
@sensitive_post_parameters('pass_word', 'credit_card_number')
def record_user_profile(request):
- UserProfile.create(user=request.user,
- password=request.POST['pass_word'],
- credit_card=request.POST['credit_card_number'],
- name=request.POST['name'])
+ UserProfile.create(
+ user=request.user,
+ password=request.POST['pass_word'],
+ credit_card=request.POST['credit_card_number'],
+ name=request.POST['name'],
+ )
...
In the above example, the values for the ``pass_word`` and
diff --git a/docs/howto/static-files/deployment.txt b/docs/howto/static-files/deployment.txt
index da0427343e..805e799eaa 100644
--- a/docs/howto/static-files/deployment.txt
+++ b/docs/howto/static-files/deployment.txt
@@ -104,9 +104,9 @@ Here's how this might look in a fabfile::
def deploy_static():
local('./manage.py collectstatic')
project.rsync_project(
- remote_dir = env.remote_static_root,
- local_dir = env.local_static_root,
- delete = True
+ remote_dir=env.remote_static_root,
+ local_dir=env.local_static_root,
+ delete=True,
)
.. _staticfiles-from-cdn: