Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fixed #21380 -- Added a way to set different permission for static direc... #1873

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

vajrasky commented Nov 5, 2013

...tories.

Previously, when collecting static files, the directories would receive permission
from global umask. Now, the default permission comes from FILE_UPLOAD_DIRECTORY_PERMISSIONS
and there's an option to give different permission from uploaded directories permission by
subclassing any of the static files storage classes and setting the
directory_permissions_mode parameter.

@vajrasky vajrasky Fixed #21380 -- Added a way to set different permission for static di…
…rectories.

Previously, when collecting static files, the directories would receive permission
from global umask. Now, the default permission comes from FILE_UPLOAD_DIRECTORY_PERMISSIONS
and there's an option to give different permission from uploaded directories permission by
subclassing any of the static files storage classes and setting the
directory_permissions_mode parameter.
88df2f6
Owner

timgraham commented Nov 29, 2013

I made a couple doc tweaks including line wraps at 80 chars and merged in 7e2d61a, thanks.

@timgraham timgraham closed this Nov 29, 2013

@timgraham timgraham commented on the diff Nov 29, 2013

docs/ref/files/storage.txt
@@ -29,7 +29,8 @@ Django provides two convenient ways to access the current storage class:
The FileSystemStorage Class
---------------------------
-.. class:: FileSystemStorage([location=None, base_url=None, file_permissions_mode=None])
+.. class:: FileSystemStorage([location=None, base_url=None, file_permissions_mode=None,
+ directory_permissions_mode=None])
@timgraham

timgraham Nov 29, 2013

Owner

I don't know if there's a way to multiline parameters that doesn't break sphinx. I've removed the newline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment