diff options
| author | Atsushi Odagiri <aodagx@gmail.com> | 2011-07-05 20:05:12 +0900 |
|---|---|---|
| committer | Atsushi Odagiri <aodagx@gmail.com> | 2011-07-05 20:05:12 +0900 |
| commit | d46cd6ad3bc7e7b8169bf088f6a91040bf7f6a45 (patch) | |
| tree | 02a358683fc132e35f1272a9abc4aa4e3530b273 | |
| parent | e58daf95b98a76f2b58a42568a15e8c4ad4f59ae (diff) | |
| download | pyramid-d46cd6ad3bc7e7b8169bf088f6a91040bf7f6a45.tar.gz pyramid-d46cd6ad3bc7e7b8169bf088f6a91040bf7f6a45.tar.bz2 pyramid-d46cd6ad3bc7e7b8169bf088f6a91040bf7f6a45.zip | |
garden
| -rw-r--r-- | pyramid/config.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyramid/config.py b/pyramid/config.py index 0724d10ae..732d2c521 100644 --- a/pyramid/config.py +++ b/pyramid/config.py @@ -621,8 +621,8 @@ class Configurator(object): config = Configurator() config.mount('myapp.myconfig.includeme', '/admin') - Because the function is named ``includeme``, the function name can - also be omitted from the dotted name reference: + ``myapp.myconfig`` is subapplication + and ``includeme`` is that mount point. .. code-block:: python :linenos: @@ -630,7 +630,7 @@ class Configurator(object): from pyramid.config import Configurator def includeme(config): - config.add_route('projects', 'projects') + config.add_route('projects', '/projects') Subapplication's routes are registerd with the ``route_prefix`` |
