If I understand you want that

/f is mapped into /app/default/f

for every f in default.py if there is no app called f and no
controller called f.
You have to explicitly list all cases of write a routes.py that builds
routes_in diagrammatically.
Else it is no obvous whether

/f and f is an app, a controller of the default app or a function in
the default controller. YOu must be explicit.



On Nov 29, 3:19 am, Alex <[email protected]> wrote:
> Looked there in the first place, then checked in bought manual.
>
> Didn't find any good way to do it.
>
> Dirty trick was to add rewrite rule in webserver.
> (*) -> /myapp/default/
>
> and in routes.py out:
> /myapp/default/(?P<any>.*) -> '/(?P<any>.*)'
>
> Drawbacks:
> Now I can have only one controller.
> For each new controller I should add new rewrite rule to web2py and
> webserver.
> I need to place static files to web2py/static/myapp/default instead of
> web2py/static
> because of werbserver's rewrite rule
>
> Is it the best suggested way of doing such thing? Too much drawbacks
> as for me.
>
> On Nov 29, 5:35 am, Iceberg <[email protected]> wrote:
>
> > On Nov29, 2:11am, Alex <[email protected]> wrote:
>
> > > Is there any way to omit default controller name in URL if there is
> > > appropriate default controller action, like it's done for index action
> > > but to work for any default controller action?
>
> > Create a routes.py in your web2py directory. See web2py/
> > route.example.py for detail.
>
>

--

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.


Reply via email to