From a636c683b150d9bbd9201a98849f13eef39a85f2 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Tue, 19 Apr 2011 20:39:23 -0500 Subject: Fixed a small bug in the paster template. --- pyramid/paster_templates/routesalchemy/+package+/__init__.py_tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyramid/paster_templates/routesalchemy/+package+/__init__.py_tmpl b/pyramid/paster_templates/routesalchemy/+package+/__init__.py_tmpl index 8e52af6e3..aea2393d6 100644 --- a/pyramid/paster_templates/routesalchemy/+package+/__init__.py_tmpl +++ b/pyramid/paster_templates/routesalchemy/+package+/__init__.py_tmpl @@ -11,7 +11,8 @@ def main(global_config, **settings): config = Configurator(settings=settings) config.add_static_view('static', '{{package}}:static') config.add_route('home', '/') - config.add_view('{{package}}.views.my_view', + config.add_view(route_name='home', + view='{{package}}.views.my_view', renderer='templates/mytemplate.pt') return config.make_wsgi_app() -- cgit v1.2.3