settings: force 0644 as mode for uploaded files (#30905)

This commit is contained in:
Frédéric Péters 2019-02-26 14:51:50 +01:00
parent fd2672f6f2
commit cb4233e020
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,9 @@ USE_TZ = True
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
MEDIA_URL = '/media/'
# mode for newly updated files
FILE_UPLOAD_PERMISSIONS = 0o644
# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
STATIC_URL = '/static/'