#23097 closed Bug (fixed)
Documentation on FILE_UPLOAD_PERMISSIONS uses deprecated octal notation
Reported by: | Owned by: | David Hoffman | |
---|---|---|---|
Component: | Documentation | Version: | 1.6 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Hello
Thank you for django.
In https://docs.djangoproject.com/en/1.6/topics/http/file-uploads/#changing-upload-handler-behavior
and https://docs.djangoproject.com/en/1.6/ref/settings/#std:setting-FILE_UPLOAD_PERMISSIONS
One is suggested to use octal notation like 0644. This doesn't work with python3 (tried 3.4.1) and the correct notation now is 0o644. That notation also works in python 2.7.
Cheers
Change History (9)
comment:1 by , 10 years ago
Easy pickings: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Bug |
comment:2 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 10 years ago
I have completed this and made a pull request (https://github.com/django/django/pull/2962).
I found a few other places in the docs with the same problem, so I fixed those as well.
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Indeed, Django's own tests use the notation you mentioned.