I have a local development django setup with apache. The problem is that on the deployment server there is no proxy while at my workplace I work behind a http proxy, hence the request calls fail.
Is there any way of making all calls from requests library go via proxy. [ I know how to add proxy to individual calls using the proxies parameter but is there a global solution ? ]
I got the same error reported by AmrFouad. At last, it fixed by updating wsgi.py as follows:
Add following lines in your wsgi file.
And Now you can use this environment variable anywhere you want,
P.S. - You should have a look at following links
UPDATE 1
You can do something like following so that proxy settings are only being used on
localhost
.