On Sunday, January 15, 2012 3:36:59 PM UTC-5, Web2Py Freak wrote:
>
> i dont understand ,can explain some more please ?


In routes.py,

router = dict(...)

and

routes_in = (...)
routes_out = (...)

are mutually exclusive -- if you want to use a router, you cannot also use 
routes_in/routes_out, and vice versa. Hence the two separate example files. 
So, if you want to use routes_in/routes_out, then you would have to handle 
the domain mapping via patterns specified in routes_in/routes_out, not via 
the simpler router method. Read the end of this section 
(http://web2py.com/books/default/chapter/29/4#Pattern-based-system) for 
details on matching domains in routes_in/routes_out.

Anthony

Reply via email to