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 <iceb...@21cn.com> wrote:
> On Nov29, 2:11am, Alex <person...@gmail.com> 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 web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to