Re: mod_python authentication problem

2008-03-28 Thread Graham Dumpleton
On Mar 28, 9:41 pm, Tim Sawyer <[EMAIL PROTECTED]> wrote: > On Friday 28 Mar 2008, Graham Dumpleton wrote: > > > On Mar 28, 9:21 pm, Tim Sawyer <[EMAIL PROTECTED]> wrote: > > > I've done that and now it's prompting me to login a normal browser dialog > > > box. If I use my django login it works

Re: mod_python authentication problem

2008-03-28 Thread Tim Sawyer
On Friday 28 Mar 2008, Graham Dumpleton wrote: > On Mar 28, 9:21 pm, Tim Sawyer <[EMAIL PROTECTED]> wrote: > > I've done that and now it's prompting me to login a normal browser dialog > > box. If I use my django login it works - is this expected behaviour or > > can I stop the login box appearing

Re: mod_python authentication problem

2008-03-28 Thread Graham Dumpleton
On Mar 28, 9:21 pm, Tim Sawyer <[EMAIL PROTECTED]> wrote: > Hi, > > I'm following the instructions at > > http://www.djangoproject.com/documentation/apache_auth/ > > I've just noticed a bit at the bottom of that page which says > - > Note that sometimes SetEnv doesn't play well in this mod_p

Re: mod_python authentication problem

2008-03-28 Thread Tim Sawyer
Hi, I'm following the instructions at http://www.djangoproject.com/documentation/apache_auth/ I've just noticed a bit at the bottom of that page which says - Note that sometimes SetEnv doesn't play well in this mod_python configuration, for reasons unknown. If you're having problems gettin

Re: mod_python authentication problem

2008-03-28 Thread Graham Dumpleton
Variables set with SetEnv aren't available to authentication handlers, only to the content handler. Thus, even if the Django authentication handler is looking for it, it will not find it and thus would not be able to update os.environ variable of same name from it. The only way it could work is if

mod_python authentication problem

2008-03-28 Thread Tim Sawyer
Hi, I'm trying to secure /site_media/private and /site_media/pictures so that only logged in users can see the files in those directories and below. The error I'm getting (sometimes - seems to be a bit inconsistent) is [Fri Mar 28 09:39:06 2008] [error] [client XXX.XXX.XXX.XXX] PythonAuthenHa