Try deleting the index.html file that is in your public directory. Files in "public" are served before the middleware stack (your controllers) is consulted.
On Tue, Mar 30, 2010 at 4:26 PM, writeson <[email protected]> wrote: > Hi all, > > I've built a Pylons application, added some controllers and have pages > working, but I'm a little confused about setting a route in > routing.py. I've got a route like this: > > map.connect('/', controller='dashboard', action='index') > > And in the navigation menu of my home page I've got this: > > ${h.link_to('Home', h.url_for("/"))} > > which should (I think) send the user to the /dashboard/index url when > the home link on the navigation menu is clicked. However, it goes to > the default Pylons project intro page rather than my mapped route. > When I run the paster shell and enter mapper.match('/') it returns > controller='dashboard', action='index' as I would expect, but it just > doesn't go there. If if navigate to http://localhost:5000/bashboard/index > I go where I expect to. > > What am I missing or doing wrong? > > Thanks in advance! > Doug > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<pylons-discuss%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
