Or you can click on "reload routes" in the web2py admin :)

On Feb 14, 12:38 am, Rene Dohmen <[email protected]> wrote:
> Got it working with the example from the web2py book:
>
> routers = dict(
>   BASE  = dict(default_application='formatics'),
> )
>
> Thank you web2py book :)
>
> Maybe a nice reminder for people running with mod_wsgi: you have to
> restart the webserver to activate changes in routes.py, and that's why
> it didn't work the 1st time
>
> R
>
> On Feb 2, 2:51 am, Rene Dohmen <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi List,
>
> > I've installed mod_wsgi on our server and added a vhost so that each
> > application is accessible viawww.examples.com/app_name
>
> > One of the apps is ready; so I created another vhost and started an
> > separate instance of web2py.
> > The second instance uses a routes.py to remove the appname from the
> > URL.
>
> > You can see it here:http://www.formaticz.nl
>
> > Everything works OK, but when I try to login via the janrain login, I
> > get redirected 
> > to:http://www.formaticz.nl/formatics/default/user/logininsteadofhttp://www.formaticz.nl/default/user/login
> > (making it impossible to login)
>
> > This is the routes.py I used (in root web2py folder).
>
> > routes_in=[['/$anything','/formatics/$anything']]
> > routes_out=[['/formatics/$anything','/$anything']]
>
> > I tried adding some extra values to it, but couldn't get it working.
>
> > Kind Regards,Rene

Reply via email to