diff options
Diffstat (limited to 'docs/narr/MyProject/myproject/run.py')
| -rw-r--r-- | docs/narr/MyProject/myproject/run.py | 17 |
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() - - |
