So... if I want to do something really simple, like not have my url show 
the controller name (default)... which routes do I modifiy?  The one in 
<web2py-root> or the one in <my_app>?

>From looking at the manual and the comments in router.example.py and 
routes.example.py, I thought it looks as if I should put this in 
<web2py-root>/routes.py:

routers = dict(
  BASE  = dict(default_application='my_app'),
)


but I still get http://127.0.0.1:8000/my_app/default/index in the url.  If 
I specfically enter http://127.0.0.1:8000/myapp in the browser bar that 
works... but if I click on the 'Home' menu entry in the nav bar (which is 
supposed to map to the 'index' function in the 'default' controller') I end 
up with the controller name in the url again.

Not sure whether I'm supposed to be modifying the <my_app>/routes.py 
instead, or if I need to specify other parameters in routes.py like 
'default_controller', etc.?


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to