I'd like to access the GEOIP_COUNTRY_CODE environment variable from within Django running on mod_wsgi in daemon mode. The problem is, I can see the variable from within PHP scripts running on the server but it seems that it is not passed through WSGI to my Django site. request.META.get('GEOIP_COUNTRY_CODE') does not work. Is there something like WSGIPassAuthorization for additional environment variables in mod_wsgi?

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top