Follow the steps for deploying Django with Apache and mod_wsgi
.
This means that the WSGIDaemon
runs under the user www-data
, which is a special linux user for Apache.
If you have to connect to the internet, you need to set the $http_proxy
and $https_proxy
variables. Set them in your /etc/environment
file.
This still doesn't mean that the environment variables are set for the www-data
user.
You need to set the same in the /etc/apache2/envvars
file, which sets the environment variables for the www-data
user.