summaryrefslogtreecommitdiff
path: root/docs/narr/MyProject/myproject/run.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-11-04 01:32:09 -0400
committerChris McDonough <chrism@plope.com>2010-11-04 01:32:09 -0400
commit9f026927c95721ec1f3337cb9e5e837523c2c8df (patch)
tree1effcf194a90ad2cc31d5184c36c27d70a8a0d66 /docs/narr/MyProject/myproject/run.py
parentbf380180c2c5e56131690a56a613c9a229ba7cf8 (diff)
downloadpyramid-9f026927c95721ec1f3337cb9e5e837523c2c8df.tar.gz
pyramid-9f026927c95721ec1f3337cb9e5e837523c2c8df.tar.bz2
pyramid-9f026927c95721ec1f3337cb9e5e837523c2c8df.zip
fix project documentation to account for starter paster template changes
Diffstat (limited to 'docs/narr/MyProject/myproject/run.py')
-rw-r--r--docs/narr/MyProject/myproject/run.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/docs/narr/MyProject/myproject/run.py b/docs/narr/MyProject/myproject/run.py
deleted file mode 100644
index 9b6ba7072..000000000
--- a/docs/narr/MyProject/myproject/run.py
+++ /dev/null
@@ -1,17 +0,0 @@
-from pyramid.configuration import Configurator
-from myproject.models import get_root
-
-def app(global_config, **settings):
- """ This function returns a WSGI application.
-
- It is usually called by the PasteDeploy framework during
- ``paster serve``.
- """
- config = Configurator(root_factory=get_root, settings=settings)
- config.begin()
- zcml_file = settings.get('configure_zcml', 'configure.zcml')
- config.load_zcml(zcml_file)
- config.end()
- return config.make_wsgi_app()
-
-