On Monday, August 15, 2011 2:06:23 PM UTC-4, Rufus wrote:
>
> For your example, I would guess routes.py would look like: 
>
> --------------------------------------------------- 
> routes_in = ( ('admin/courses','init/admin_courses/index'),) 
> routes_out = ( ('init/admin_courses/index', 'admin/courses'),) 
> print "routing lists initialized..." 
> --------------------------------------------------- 

 
And be careful -- if you want to be able to access the 'admin' app that 
comes with web2py, make sure your routes still allow that.
 

>  

I discovered one other thing!  If you edit routes.py, SHUTDOWN AND 
> RESTART WEB2PY! 

 
You can also do:
 
import gluon.rewrite
gluon.rewrite.load()
 
You should also be able to go to /admin/default/reload_routes to reload 
routes.py, but it looks like there is currently a bug that is causing that 
to fail.
 
Anthony
 

Reply via email to