I set up the django setting.py like this:
import os from django.core.exceptions import ImproperlyConfigured def get_env_variable(var_name): try:
whatever environments you are setting in the settings.py will be applied for that instance's environment variables only, they are not changing the system env variables which will be called apache.