diff options
| author | Vajrasky Kok <sky.kok@speaklikeaking.com> | 2013-10-19 20:40:12 +0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-24 17:40:01 -0400 |
| commit | 9eecb9169566db263e243e4522b08ea1403ee95f (patch) | |
| tree | 0da80e779e7702ff2ba05f9c9d6f0ff5b15edb03 /docs/releases | |
| parent | c052699be3637c22e3a26383a4bdabc8c3cc0feb (diff) | |
Fixed #21219 -- Added a way to set different permission for static files.
Previously, when collecting static files, the files would receive permission
from FILE_UPLOAD_PERMISSIONS. Now, there's an option to give different
permission from uploaded files permission by subclassing any of the static
files storage classes and setting the file_permissions_mode parameter.
Thanks dblack at atlassian.com for the suggestion.
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/1.7.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index 7ce13066bf..9312aeaecb 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -226,6 +226,15 @@ Minor features :class:`~django.middleware.http.ConditionalGetMiddleware` to handle conditional ``GET`` requests for sitemaps which set ``lastmod``. +:mod:`django.contrib.staticfiles` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +* The :ref:`static files storage classes <staticfiles-storages>` may be + subclassed to override the permissions that collected static files receive by + setting the + :attr:`~django.core.files.storage.FileSystemStorage.file_permissions_mode` + parameter. See :djadmin:`collectstatic` for example usage. + :mod:`django.contrib.syndication` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
