summaryrefslogtreecommitdiff
path: root/repoze/bfg/paster_templates/routesalchemy
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/paster_templates/routesalchemy')
-rw-r--r--repoze/bfg/paster_templates/routesalchemy/+package+/run.py_tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/repoze/bfg/paster_templates/routesalchemy/+package+/run.py_tmpl b/repoze/bfg/paster_templates/routesalchemy/+package+/run.py_tmpl
index e0e705224..b592e45a9 100644
--- a/repoze/bfg/paster_templates/routesalchemy/+package+/run.py_tmpl
+++ b/repoze/bfg/paster_templates/routesalchemy/+package+/run.py_tmpl
@@ -22,7 +22,8 @@ def app(global_config, **settings):
if db_string is None:
raise ValueError("No 'db_string' value in application configuration.")
initialize_sql(db_string)
+ config = Configurator(settings=settings)
zcml_file = settings.get('configure_zcml', 'configure.zcml')
- config = Configurator(settings=settings, zcml_file=zcml_file)
+ config.load_zcml(zcml_file)
return config.make_wsgi_app()