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

This commit is contained in:
Frédéric Péters 2019-02-26 14:50:21 +01:00
parent 077ca84777
commit 99a8987d6b
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,9 @@ STATICFILES_DIRS = [os.path.join(BASE_DIR, 'fargo', 'static')]
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# mode for newly updated files
FILE_UPLOAD_PERMISSIONS = 0o644
LOCALE_PATHS = [os.path.join(BASE_DIR, 'fargo', 'locale')]
# Static files (CSS, JavaScript, Images)