[modwsgi] Re: mod_wsgi / Django integration problems

2008-10-28 Thread Graham Dumpleton
Two changes required to what you have done. See below. 2008/10/28 Giles Thomas [EMAIL PROTECTED]: Hi all, I'm trying to get mod_wsgi working with Django (1.0), and I've hit a problem that I can't seem to be able to solve. It's simple enough that I'm sure the solution is obvious and I'm

[modwsgi] Re: mod_wsgi / Django integration problems

2008-10-28 Thread Graham Dumpleton
2008/10/28 Mike Beaumont [EMAIL PROTECTED]: Your problem is this. You're prepending SCRIPTNAME to PATHINFO each time so it adds another /admin for every successive request. What I suggest doing is adding 3 Location directives in your apache configuration for /admin /foo and /bar. Not sure

[modwsgi] Re: mod_wsgi / Django integration problems

2008-10-28 Thread Graham Dumpleton
Okay, here it is. All you need in the Apache configuration file is: WSGIScriptAliasMatch ^/(admin|foo|bar)(/.*)?$ /Users/grahamd/Sites/echo.wsgi/$1$2 You do not need to make any changes to the WSGI script file. Just use: import os, sys sys.path.append('/usr/local/django')

[modwsgi] Re: mod_wsgi / Django integration problems

2008-10-28 Thread Giles Thomas
Graham, Many thanks for this and for all the details in your other emails - this solution works perfectly! Cheers, Giles Graham Dumpleton wrote: Okay, here it is. All you need in the Apache configuration file is: WSGIScriptAliasMatch ^/(admin|foo|bar)(/.*)?$

[modwsgi] Re: mod_wsgi / Django integration problems

2008-10-27 Thread Mike Beaumont
Your problem is this. You're prepending SCRIPTNAME to PATHINFO each time so it adds another /admin for every successive request. What I suggest doing is adding 3 Location directives in your apache configuration for /admin /foo and /bar. But if you want it done the way you have set up, create some