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

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

View File

@ -159,6 +159,9 @@ STATIC_URL = '/static/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
# mode for newly updated files
FILE_UPLOAD_PERMISSIONS = 0o644
CKEDITOR_UPLOAD_PATH = 'uploads/'
CKEDITOR_IMAGE_BACKEND = 'pillow'