Hi,
Steven was right there is a line
os.environ.update(req.subprocess_env) in mod_python handler.
which sets the 'HTTPS' :'on' in os.environ if https is active.
Adrain:
I tried running the metadata view there is nothing in META, that would
tell if https is active.
I wonder if it still would be
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'
Hi,
I eventually solved my problem by modifying django/core/handlers/modpython.py
so that request.META would contain a key HTTPS.
--- core/handlers/modpython.py (revision 2299)
+++ core/handlers/modpython.py (working copy)
@@ -86,6 +86,8 @@
for key, value in self._req.headers_in.i
Hi Steven,
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?
On 5/5/06, Steven Armstrong <[EMAIL PROTECTED]> wrote:
>
> On 05/05/06 19:33, Jakub Labath wrote:
> > Hi,
> >
> > I eventually solved my problem by
Sorry,
this is the one that actually works.
--- core/handlers/modpython.py (revision 2299)
+++ core/handlers/modpython.py (working copy)
@@ -86,6 +86,8 @@
for key, value in self._req.headers_in.items():
key = 'HTTP_' + key.upper().replace('-', '_')
On 05/05/06 19:33, Jakub Labath wrote:
> Hi,
>
> I eventually solved my problem by modifying django/core/handlers/modpython.py
> so that request.META would contain a key HTTPS.
>
> --- core/handlers/modpython.py (revision 2299)
> +++ core/handlers/modpython.py (working copy)
> @@ -86,6 +86,8 @
On 05/05/06 20:06, Jakub Labath wrote:
> Hi Steven,
>
> 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?
>
Hi
Yea, after having another look, it seems that's only available while
running the dev server. M