Answer the question
In order to leave comments, you need to log in
Django. File permissions after writing?
Good afternoon! There is a production server with Django.
UWSGI settings like this:
[uwsgi]
project = posudahome
uid = dikiigr
gid = www-data
...
-rw------- 1 dikiigr www-data 10573824 Aug 14 12:11 7947dc95-d4a4-4903-80e4-759e6a7c1ed7.xls
-rw-r--r-- 1 dikiigr www-data 35480 Aug 14 12:24 612b8260-63dc-45bd-9bd8-41b73c673e2f.jpg
Answer the question
In order to leave comments, you need to log in
Googling, I found out that django has a permissions parameter.
Decision:
If this isn't given or is None, you'll get operating-system dependent behavior. On most platforms, temporary files will have a mode of 0o600, and files saved from memory will be saved using the system's standard umask.
Which means it is platform dependent and you need to force this mask to not be taken by default
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question