summaryrefslogtreecommitdiff
path: root/docs/narr/MyProject
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-11-19 22:28:50 -0500
committerChris McDonough <chrism@plope.com>2010-11-19 22:28:50 -0500
commit614f00c88733b5248922e2b610c96f7c8c3ff57c (patch)
treec178e586f021abe0aca3975ec44f328fd7ccd806 /docs/narr/MyProject
parentff3811e4a776f096869d860309d4cff04dcb99ba (diff)
downloadpyramid-614f00c88733b5248922e2b610c96f7c8c3ff57c.tar.gz
pyramid-614f00c88733b5248922e2b610c96f7c8c3ff57c.tar.bz2
pyramid-614f00c88733b5248922e2b610c96f7c8c3ff57c.zip
- Remove calls to config.begin()/config.end() from startup config code in
tutorials and paster templates (no longer required).
Diffstat (limited to 'docs/narr/MyProject')
-rw-r--r--docs/narr/MyProject/myproject/__init__.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/docs/narr/MyProject/myproject/__init__.py b/docs/narr/MyProject/myproject/__init__.py
index bfbbfd4df..580dfe546 100644
--- a/docs/narr/MyProject/myproject/__init__.py
+++ b/docs/narr/MyProject/myproject/__init__.py
@@ -5,11 +5,8 @@ def main(global_config, **settings):
""" This function returns a Pyramid WSGI application.
"""
config = Configurator(root_factory=get_root, settings=settings)
- config.begin()
config.add_view('myproject.views.my_view',
context='myproject.models.MyModel',
renderer='myproject:templates/mytemplate.pt')
config.add_static_view('static', 'myproject:static')
- config.end()
return config.make_wsgi_app()
-