On Mon, 2007-11-12 at 15:55 +0000, Krzysztof Ciesielski wrote: > Hi, I've got a problem with django used with mod_ssl and mod_python. I > wanted to use environmental variables from mod_ssl in order to > automaticly log in users but it appears that those variables are not > accessible trough request.META Has anyone met this problem before. and > has any idea how to solve this issue?
If you can get access to this information through mod_pythons req object at all, that is available in Django via request._req. However, request.META only contains information from mode_python's request object plus all the HTTP headers. We aren't going to load up every environmental variable under the sun in there; it would be huge. So, without having tested it, you might be able to access request._req.subprocess_env to get the information (although read the mod_python docs first, particularly about add_common_vars(), since that's certainly tripped me up in the past for non-Django-related projects and I'm not sure when you have to call it and when you don't). Regards, Malcolm -- Tolkien is hobbit-forming. http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---