Re: No way to get the requested hostname in a portable way

2006-01-17 Thread hugo
>request.META['HOSTNAME'] works for getting the host when django is >started with the builtin webserver, but doesn't work with the fcgi >backend. request.META['HTTP_HOST'] doesn't work? Because that's the common way to access the HTTP header Host: - that should work with SCGI/FCGI, too. bye, Geo

No way to get the requested hostname in a portable way

2006-01-17 Thread Wojtek/brandlay.com
I want to get the full URL of the current request, and there seems to be no portable way to do it (no Request object method). request.META['HOSTNAME'] works for getting the host when django is started with the builtin webserver, but doesn't work with the fcgi backend. Is this feature planned? I