On May 30, 2012, at 7:08 PM, Horus wrote: > I have attached a screenshot to show you what i am seeing. > > I started python 4 weeks ago and web2py for the last 2 so this is completely > new to me. > I downloaded a windows copy in this copy there are the two files I mentioned > > I got it to work after restarting web2py as you had pointed out > > From what you are saying router.py shouldn't be there or is obsolete > I am using the system for the first time I was assume it was there for a > reason.
There are two flavors of the routing logic. The older and more general one is a regex-based pattern-matching router, and it has an example in routes.example.py. There's a newer parametric router that's much easier to configure, but not quite as general. It has an example in router.example.py. You want to pick which router to use, and copy its example file to routes.py. The name router.example.py is misleading in that respect, and there's been some discussion of changing the names, but it's embedded in a lot of documentation, so it has some inertia.

