[web2py] Problems with parameter-based routing

2013-05-23 Thread Marian
I wanted to switch from pattern-based routing on a Windows IIS7 Server with isapi_wsgi to a parameter-based routing to benefit from nicer urls but it is not working. It either says invalid request or the server stucks in an endless loop. My functioning pattern based routing. As you can see I nee

Re: [web2py] Problems with parameter-based routing

2013-05-30 Thread Jonathan Lundell
On 30 May 2013, at 8:46 AM, Marian wrote: > In rewrite.py I see two 303 responses in try_rewrite_on_error and > try_redirect_on_error, I think one is responsible for the automatic redirect. I didn't notice that you had routes_onerror defined. What's its value? > > > > On Thursday, May 30, 2

Re: [web2py] Problems with parameter-based routing

2013-05-30 Thread Marian
Sorry if it's a repost: I don't use routes_onerror or at least not when testing the parameter-based routing. I tried to explicitly write the imagecontest app in the router but the I get a 500.0 server error: routers = dict( BASE = dict( path_prefix='applications', default_applica

Re: [web2py] Problems with parameter-based routing

2013-05-30 Thread Jonathan Lundell
On 30 May 2013, at 9:40 AM, Marian wrote: > Sorry if it's a repost: > > I don't use routes_onerror or at least not when testing the parameter-based > routing. > > I tried to explicitly write the imagecontest app in the router but the I get > a 500.0 server error: > routers = dict( > BASE =

Re: [web2py] Problems with parameter-based routing

2013-05-30 Thread Marian
I delete all lines but the the routers dict in the routes.py and the I always restart the IIS completly. The endless loop is the redirect on error (which I don't understand) to the welcome app which is not available. The 400 error appears when I have a default_application in the base router an