Hi Chris, First off, I believe your views need to be named for this to work.
That being said, the following would work from within a view callable: url = request.route_path('history') helpful pages: http://docs.pylonsproject.org/projects/pyramid/1.0/narr/urldispatch.html#generating-route-urls http://docs.pylonsproject.org/projects/pyramid/1.0/api/url.html#pyramid.url.route_url route_path is similar to route_url but generates a path (aka a ‘relative URL’, a URL minus the host, scheme, and port) Hope this helps, Cheers, JP On Mar 1, 9:02 am, Chris Withers <ch...@simplistix.co.uk> wrote: > Hi All, > > I have two views: > > @view_config(renderer='templates/index.pt') > class IndexView(..): > ... > > @view_config(name='history',renderer='templates/history.pt') > class HistoryView(..): > ... > > How should I generate urls to these? > > cheers, > > Chris > > -- > Simplistix - Content Management, Batch Processing & Python Consulting > -http://www.simplistix.co.uk -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.