summaryrefslogtreecommitdiff
path: root/docs/narr/MyProject/myproject/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/narr/MyProject/myproject/__init__.py')
-rw-r--r--docs/narr/MyProject/myproject/__init__.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/docs/narr/MyProject/myproject/__init__.py b/docs/narr/MyProject/myproject/__init__.py
index ac6ece3c1..bfbbfd4df 100644
--- a/docs/narr/MyProject/myproject/__init__.py
+++ b/docs/narr/MyProject/myproject/__init__.py
@@ -1,11 +1,8 @@
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``.
+def main(global_config, **settings):
+ """ This function returns a Pyramid WSGI application.
"""
config = Configurator(root_factory=get_root, settings=settings)
config.begin()