Hi, I am trying to do the similar thing.

It works if I use config.add_route()

but if I use @view_config, it does not work me and keeps complaining
that it cannot find renderer

what is the problem?

Thanks

On Mar 4, 4:27 pm, Mengu <whalb...@gmail.com> wrote:
> for development, i recommend you using paster. you can just do "paster
> serve --reload development.ini".
>
> - make sure you have "mako.directories = appname:templates" under
> [app:appname] directive in your *.ini files.
> - when you add a route or so, do not set the path like "/templates/
> index.html" just set it like "index.html". ie:
>
>     config.add_route('new_bookmark', '/bookmarks/new',
> view='bookmarkapp.views.bookmarks.new', view_renderer='bookmarks/
> index.html')
>
> hope this helps.
>
> On Mar 4, 1:02 pm, pgiraud <pierre.gir...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi all,
>
> > I just created a new project using the pyramid_sqla template (which
> > includes mako template engine).
> > Then followed the "run under mod_wsgi" instructions [1], but I get the
> > following error:
> > TopLevelLookupException: Cant locate template for uri 'index.html'
>
> > Does anybody have an idea about what's wrong ?
>
> > Thanks,
> > Pierre
>
> > [1]http://docs.pylonsproject.org/projects/pyramid/1.0/tutorials/modwsgi/...

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

Reply via email to