mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #21380 -- Added a way to set different permission for static directories.
Previously when collecting static files, the directories would receive permissions from the global umask. Now the default permission comes from FILE_UPLOAD_DIRECTORY_PERMISSIONS and there's an option to specify the permissions by subclassing any of the static files storage classes and setting the directory_permissions_mode parameter.
This commit is contained in:
@@ -256,10 +256,11 @@ Minor features
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
* The :ref:`static files storage classes <staticfiles-storages>` may be
|
||||
subclassed to override the permissions that collected static files receive by
|
||||
setting the
|
||||
subclassed to override the permissions that collected static files and
|
||||
directories receive by setting the
|
||||
:attr:`~django.core.files.storage.FileSystemStorage.file_permissions_mode`
|
||||
parameter. See :djadmin:`collectstatic` for example usage.
|
||||
and :attr:`~django.core.files.storage.FileSystemStorage.directory_permissions_mode`
|
||||
parameters. See :djadmin:`collectstatic` for example usage.
|
||||
|
||||
:mod:`django.contrib.syndication`
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Reference in New Issue
Block a user