diff options
| author | Chris McDonough <chrism@plope.com> | 2010-11-04 00:38:48 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-11-04 00:38:48 -0400 |
| commit | ed4a7dc107690978eb760af2bc1b13ca0d19e6f4 (patch) | |
| tree | 8d4258a33ed2e0d9b4ea3783838eda935483b69a | |
| parent | 75da1c70b191d70a2549971674692193db2ed48a (diff) | |
| download | pyramid-ed4a7dc107690978eb760af2bc1b13ca0d19e6f4.tar.gz pyramid-ed4a7dc107690978eb760af2bc1b13ca0d19e6f4.tar.bz2 pyramid-ed4a7dc107690978eb760af2bc1b13ca0d19e6f4.zip | |
use fully qualified dotted names
| -rw-r--r-- | pyramid/paster_templates/alchemy/+package+/run.py_tmpl | 6 | ||||
| -rw-r--r-- | pyramid/paster_templates/routesalchemy/+package+/run.py_tmpl | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/pyramid/paster_templates/alchemy/+package+/run.py_tmpl b/pyramid/paster_templates/alchemy/+package+/run.py_tmpl index 2e349f482..2a0eaa5b7 100644 --- a/pyramid/paster_templates/alchemy/+package+/run.py_tmpl +++ b/pyramid/paster_templates/alchemy/+package+/run.py_tmpl @@ -17,9 +17,11 @@ def app(global_config, **settings): config = Configurator(settings=settings, root_factory=get_root) config.begin() config.add_static_view('static', 'templates/static') - config.add_view('.views.view_root', context='.models.MyApp', + config.add_view('{{package}}.views.view_root', + context='{{package}}.models.MyApp', renderer="templates/root.pt") - config.add_view('.views.view_model', context='.models.MyModel', + config.add_view('{{package}}.views.view_model', + context='{{package}}.models.MyModel', renderer="templates/model.pt") config.end() return config.make_wsgi_app() diff --git a/pyramid/paster_templates/routesalchemy/+package+/run.py_tmpl b/pyramid/paster_templates/routesalchemy/+package+/run.py_tmpl index 9edcd28c8..c9e12a3fb 100644 --- a/pyramid/paster_templates/routesalchemy/+package+/run.py_tmpl +++ b/pyramid/paster_templates/routesalchemy/+package+/run.py_tmpl @@ -17,7 +17,7 @@ def app(global_config, **settings): config = Configurator(settings=settings) config.begin() config.add_static_view('static', 'templates/static') - config.add_route('home', '/', view='.views.my_view', + config.add_route('home', '/', view='{{package}}.views.my_view', renderer='templates/mytemplate.pt') config.end() return config.make_wsgi_app() |
