On 5/5/06, Jakub Labath <[EMAIL PROTECTED]> wrote:
> Thanks but I don't seem to have the 'wsgi.url_scheme' available in my
> request.META could it be becuase I'm using apache and mod_python?
Yeah, 'wsgi.url_scheme' is only available via the WSGI handler, not
the mod_python handler.
I know there's some way to detect HTTPS, but I can't remember it, and
I don't have access to an HTTPS Django installation that I can easily
check on...
There's a sample Django view called "metadata()" in
examples/hello/views.py in the new, post-magic-removal trunk. Run that
view on your HTTPS server to see all request.META keys. If you find
it, let me know, and I'll update the docs.
If you're not running the new trunk yet, you should just be able to
copy that view off of this page:
http://code.djangoproject.com/browser/django/trunk/examples/hello/views.py
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---