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
--
Ticket URL: <https://code.djangoproject.com/ticket/23097>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* easy: 0 => 1
* needs_docs: => 0
* type: Uncategorized => Bug
* stage: Unreviewed => Accepted
Comment:
Indeed, Django's own tests use the notation you mentioned.
--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:1>
* status: new => assigned
* owner: nobody => dhoffman
--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:2>
Comment (by dhoffman):
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"e1c85167a3de7adf51105d5f0751b39fa0d49ba7"]:
{{{
#!CommitTicketReference repository=""
revision="e1c85167a3de7adf51105d5f0751b39fa0d49ba7"
Fixed #23097 -- Switched to new octal format in docs
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:4>
Comment (by Claude Paroz <claude@…>):
In [changeset:"08e8e2137db9381d473f6c5b6b1d4240c47b7414"]:
{{{
#!CommitTicketReference repository=""
revision="08e8e2137db9381d473f6c5b6b1d4240c47b7414"
[1.7.x] Fixed #23097 -- Switched to new octal format in docs
Backport of e1c85167a3 from master.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:5>
Comment (by Claude Paroz <claude@…>):
In [changeset:"2630cafc86bf6cc86ec8b47f0074b42f45b1f944"]:
{{{
#!CommitTicketReference repository=""
revision="2630cafc86bf6cc86ec8b47f0074b42f45b1f944"
[1.6.x] Fixed #23097 -- Switched to new octal format in docs
Backport of e1c85167a3 from master.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:6>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"f24b59267be2e5fc5bd1252efda3aed19f860813" f24b5926]:
{{{
#!CommitTicketReference repository=""
revision="f24b59267be2e5fc5bd1252efda3aed19f860813"
Refs #23097 -- Used new octal format in FILE_UPLOAD_PERMISSIONS docs.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:7>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"ccf3cecbaf7cdaeeb027ca37bd93efb35ff7393b" ccf3cecb]:
{{{
#!CommitTicketReference repository=""
revision="ccf3cecbaf7cdaeeb027ca37bd93efb35ff7393b"
[3.1.x] Refs #23097 -- Used new octal format in FILE_UPLOAD_PERMISSIONS
docs.
Backport of f24b59267be2e5fc5bd1252efda3aed19f860813 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:8>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"f175e03fc2a759f401f7e25e153835d28bf01ee0" f175e03]:
{{{
#!CommitTicketReference repository=""
revision="f175e03fc2a759f401f7e25e153835d28bf01ee0"
[3.0.x] Refs #23097 -- Used new octal format in FILE_UPLOAD_PERMISSIONS
docs.
Backport of f24b59267be2e5fc5bd1252efda3aed19f860813 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23097#comment:9>