Commits

Anonymous committed f782b76

clarify that main() lives in __init__.py and make it more obvious it is new in Pyramid.

Comments (0)

Files changed (1)

docs/architecture.rst

 =============================
 
 A Pyramid application revolves around a top-level ``main()`` function in the
-application package. "paster serve" does the equivalent of this::
+application package (__init__.py). "paster serve" does the equivalent of this::
 
     # Instantiate your WSGI application
     import zzz
     app = zzz.main(**settings)
 
-The Pylons equivalent to ``main()`` is ``make_app()`` in middleware.py. The
-``main()`` function replaces Pylons' middleware.py, config.py, *and* routing.py
-but is much shorter:
+The Pylons equivalent to Pyramid's ``main()`` is ``make_app()`` in
+middleware.py. The __init__.py ``main()`` function replaces Pylons'
+middleware.py, config.py, *and* routing.py but is much shorter:
 
 .. code-block:: python
    :linenos: