diff options
| author | Steve Piercy <web@stevepiercy.com> | 2015-05-25 14:55:00 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2015-05-25 14:55:00 -0700 |
| commit | 34a913dd693695ade475000bfe61eb6e828a1dc8 (patch) | |
| tree | 616a81678dd450ae73783293fb2a09ade57411b8 /docs/tutorials/wiki2/basiclayout.rst | |
| parent | 27a0750481769ecb00ee3cf2a60f0da263f68ae7 (diff) | |
| download | pyramid-34a913dd693695ade475000bfe61eb6e828a1dc8.tar.gz pyramid-34a913dd693695ade475000bfe61eb6e828a1dc8.tar.bz2 pyramid-34a913dd693695ade475000bfe61eb6e828a1dc8.zip | |
grammar, caps, minor tweaks
Diffstat (limited to 'docs/tutorials/wiki2/basiclayout.rst')
| -rw-r--r-- | docs/tutorials/wiki2/basiclayout.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/tutorials/wiki2/basiclayout.rst b/docs/tutorials/wiki2/basiclayout.rst index 90157aa9e..623882516 100644 --- a/docs/tutorials/wiki2/basiclayout.rst +++ b/docs/tutorials/wiki2/basiclayout.rst @@ -7,13 +7,14 @@ they provide a good orientation for the high-level patterns common to most :term:`URL dispatch`-based :app:`Pyramid` projects. -Application Configuration with ``__init__.py`` +Application configuration with ``__init__.py`` ---------------------------------------------- A directory on disk can be turned into a Python :term:`package` by containing an ``__init__.py`` file. Even if empty, this marks a directory as a Python -package. We use ``__init__.py``, both as a marker indicating the directory -it's contained within is a package, and to contain configuration code. +package. We use ``__init__.py`` both as a marker, indicating the directory +in which it's contained is a package, and to contain application configuration +code. Open ``tutorial/tutorial/__init__.py``. It should already contain the following: @@ -136,7 +137,7 @@ Finally, ``main`` is finished configuring things, so it uses the :lines: 21 :language: py -View Declarations via ``views.py`` +View declarations via ``views.py`` ---------------------------------- The main function of a web framework is mapping each URL pattern to code (a |
