On Thu, Feb 11, 2010 at 6:08 PM, Ben Bangert <[email protected]> wrote:
> On Feb 11, 2010, at 2:27 PM, Matthew Burgess wrote:
>
>> I'm at the stage of setting up the routes, and the tutorial tells me to 
>> replace all of the default custom routes with:
>>
>>    map.connect(':controller/:action/:title', controller='page',
>>      action='index', title='FrontPage')
>>    map.connect(':title', controller='page', action='index',
>>      title='FrontPage')
>>    map.connect('*url', controller='template', action='view')
>>
>> This ends up in me reaching a server error page, as the 'template' module 
>> can't be found when I hit http://localhost:5000/.
>
> Ah, those should be replaced with proper routes. Ie, adding things like:
> map.connect('/page/{action}/{title}'....)

The {} syntax was added in Routes 1.9.  All paths should also start
with a slash.

The "*url" has two problems.  One, the new syntax would be
"/{url:.*}".  Two, the 'template' controller hasn't existed since
Pylons 0.9.6, so the entire route should be removed.

-- 
Mike Orr <[email protected]>

-- 
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.

Reply via email to