Permissions on files created by a specific user depend on which mask is set for that specific user.
Now you need to set the appropriate permissions for those who start the apache service
ps -aux | grep apache | awk '{ print $1 }'
Then for that specific user using apache (www-data?)
sudo chown -R your_user:user_running_apache directory
where the directory is the root directory of your django application. To ensure that all files that will be added to this directory in the future, the correct permissions are executed:
sudo chmod -R g+s directory
source share