summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2015-12-23 17:08:40 +0000
committerTim Graham <timograham@gmail.com>2015-12-24 09:54:33 -0500
commit77b8d8cb6d6d6345f479c68c4892291c1492ba7e (patch)
treea42ca617d80dcaaa3db36069688e141e154c4dc1 /docs/ref
parenta856555df2a1b4ddad8bf21243de0bcbcc12fb20 (diff)
Discouraged use of /tmp with predictable names.
The use of predictable filenames in /tmp often leads to symlink attacks so remove the most obvious use of them in the docs.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/django-admin.txt2
-rw-r--r--docs/ref/models/fields.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index f4df81d229..24ea5906ae 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -1784,5 +1784,5 @@ Output redirection
Note that you can redirect standard output and error streams as all commands
support the ``stdout`` and ``stderr`` options. For example, you could write::
- with open('/tmp/command_output') as f:
+ with open('/path/to/command_output') as f:
management.call_command('dumpdata', stdout=f)
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 033ae14778..6320f20e24 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -783,7 +783,7 @@ Python file object like this::
from django.core.files import File
# Open an existing file using Python's built-in open()
- f = open('/tmp/hello.world')
+ f = open('/path/to/hello.world')
myfile = File(f)
Or you can construct one from a Python string like this::