I read the docs, but still don't quite understand how to apply in this
situation. I created a series of controllers in the /controllers/
logic directory. This is a line in Routes:
map.connect('/logic/q01/{action}/', controller='logic/q01')
But, this produces a 404 (not found) error:
http://localhost:5000/logic/q01/view
What should the mapping be set to so that the view action in the logic/
q01 controller is run:
Edgar
On Mar 30, 1:58 pm, Wyatt Baldwin <[email protected]> wrote:
> On Mar 30, 8:43 am, edgarsmolow <[email protected]> wrote:
>
>
>
> > In my project, there are a number of controllers (and corresponding
> > templates) that can be grouped together since they share a common
> > purpose. To keep things organized, I've put the controllers in a
> > subdirectory (of the controllers directory) called ai. For example,
> > here are the locations of three controllers:
> > /myproject/controllers/ai/q01.py
> > /myproject/controllers/ai/q23.py
> > /myproject/controllers/ai/w02.py
>
> > How should Routes be set up so that the following URL is mapped to the
> > q01 controller above?
>
> >http://www.somedomain.com/ai/q01
>
> > Would the following be correct (assuming it's placed higher in the
> > list)?
> > map.connect('/ai/{controller}/{action}')
>
> This is close, but I don't think it would work, as the controller is
> 'ai/q01'. The answer you seek is somewhere near here:
>
> http://pylonshq.com/docs/en/0.9.7/configuration/#url-config
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---