No, the parameter-based and pattern-based rewrite systems are mutually
exclusive -- you cannot combine them (mentioned at the end of the second
paragraph here: http://web2py.com/books/default/chapter/29/4#URL-rewrite).
Anthony
On Tuesday, August 21, 2012 3:41:11 PM UTC-4, Daniel Gonzalez wrote:
i *think* it is one or the other, but not both. :(
there may be a routers equivalent to my suggestion, but i don't know it.
:( i know that you can convert routers into the routes_in/routes_out style.
On 8/21/12 12:41 , Daniel Gonzalez wrote:
Thanks howesc and Derek,
Your solution is working
Thanks howesc and Derek,
Your solution is working, but it is conflicting with routers. This is my
full routes.py:
routers = dict(
BASE = dict(
default_application = 'app1',
),
myapp = dict(
default_controller = 'controller1',
default_function = 'start',
that's what i get for typing so quickly! thanks for spotting my mistake. :)
On 8/21/12 12:15 , Derek wrote:
wrong.
routes_in = ( ('/hello', '/app1/controller1/hello'), ('/bye',
'/app1/controller*2*/bye'))
On Tuesday, August 21, 2012 9:42:27 AM UTC-7, howesc wrote:
routes_in = ( ('/hello',
wrong.
routes_in = ( ('/hello', '/app1/controller1/hello'), ('/bye',
'/app1/controller*2*/bye'))
On Tuesday, August 21, 2012 9:42:27 AM UTC-7, howesc wrote:
>
>
> routes_in = ( ('/hello', '/app1/controller1/hello'), ('/bye',
> '/app1/controller1/bye'))
>
>
>
> On Tuesday, August 21, 2012 1:
routes_in = ( ('/hello', '/app1/controller1/hello'), ('/bye',
'/app1/controller1/bye'))
On Tuesday, August 21, 2012 1:28:49 AM UTC-7, Daniel Gonzalez wrote:
>
> Hello,
>
> I have the following routing requirements, which I am unable to configure
> in routes.py:
>
> www.mysite.com/hello -> a
6 matches
Mail list logo