Sorry for the late reply, but it does not work still. Here are my
settings:
routes_in=[ ('/w2p/', '/myapp/default/index/'), ('/w2p/(?P<a>.*)$','/
\g<a>')]
routes_out=[('/(?P<a>.*)$','/w2p/\g<a>')]
I still get unknown ticket on plain /w2p/
On Jan 29, 9:31 pm, mdipierro <[email protected]> wrote:
> This route alone
>
> routes_in=[ ('/w2p/', '/myapp/default/index')]
>
> should map that url into /myapp/default/index. does it work?
>
> On Jan 29, 12:01 pm, Tamas <[email protected]> wrote:
>
> > The URL ishttp://example.com/w2p/theapp's name is myapp apparently.
>
> > On Jan 29, 6:53 pm, mdipierro <[email protected]> wrote:
>
> > > what is the URL you see in your browser when you get the error?
> > > what is your app name?
>
> > > On Jan 29, 11:50 am, Tamas <[email protected]> wrote:
>
> > > > Hi,
>
> > > > I tried
>
> > > > routes_in=[ ('/w2p/?', '/myapp'), ('/w2p/(?P<a>.*)$','/\g<a>')]
>
> > > > but it does not work, I still get the unknown ticket.
>
> > > > On Jan 29, 6:46 pm, mdipierro <[email protected]> wrote:
>
> > > > > Because your app is not called 'init' and we assumed it was. This will
> > > > > fix it.
>
> > > > > routes_in=[('/w2p/?','/youappname'),('/w2p/$anything','/$anything')]
> > > > > routes_out=[('/$anything','/w2p/$anything')]
>
> > > > > On Jan 29, 11:41 am, Tamas <[email protected]> wrote:
>
> > > > > > Thanks, based on your suggestion this works:
>
> > > > > > routes_in=[('/w2p/(?P<a>.*)$','/\g<a>')]
> > > > > > routes_out=[('/(?P<a>.*)$','/w2p/\g<a>')]
>
> > > > > > However, I still have the problem of getting an unknown ticket for
> > > > > > plain /w2p/ (default apps are not installed), how can I specify
> > > > > > which
> > > > > > application should it go by default?
>
> > > > > > On Jan 29, 6:35 pm, mdipierro <[email protected]> wrote:
>
> > > > > > > routes_in=[('/w2p/$anything','/$anything')]
> > > > > > > routes_out=[('/$anything','/w2p/$anything')]
>
> > > > > > > On Jan 29, 11:17 am, Tamas <[email protected]> wrote:
>
> > > > > > > > Hello,
>
> > > > > > > > I would like to tackle the simple task of running web2py on a
> > > > > > > > folder
> > > > > > > > of the website, say
>
> > > > > > > >http://example.org/w2p/
>
> > > > > > > > So that an application will be
> > > > > > > > likehttp://example.org/w2p/example/default/index
>
> > > > > > > > Setting up the WSGI handler is easy, however routes.py gives me
> > > > > > > > a hard
> > > > > > > > time. I tried a bunch of versions, but none seemed to work.
>
> > > > > > > > Can someone help out? This should be really easy, but it isn't!
>
> > > > > > > > Thanks
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.