diff options
| author | Michael Merickel <michael@merickel.org> | 2011-04-19 20:39:23 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2011-04-20 05:05:40 -0500 |
| commit | a636c683b150d9bbd9201a98849f13eef39a85f2 (patch) | |
| tree | b70779827d02e677dc9afe75ee9363e3b285f592 | |
| parent | 773a370c590ed82c143aa548f55ab9472601449b (diff) | |
| download | pyramid-a636c683b150d9bbd9201a98849f13eef39a85f2.tar.gz pyramid-a636c683b150d9bbd9201a98849f13eef39a85f2.tar.bz2 pyramid-a636c683b150d9bbd9201a98849f13eef39a85f2.zip | |
Fixed a small bug in the paster template.
| -rw-r--r-- | pyramid/paster_templates/routesalchemy/+package+/__init__.py_tmpl | 3 |
1 files changed, 2 insertions, 1 deletions
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() |
