From d46cd6ad3bc7e7b8169bf088f6a91040bf7f6a45 Mon Sep 17 00:00:00 2001 From: Atsushi Odagiri Date: Tue, 5 Jul 2011 20:05:12 +0900 Subject: garden --- pyramid/config.py | 6 +++--- 1 file 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`` -- cgit v1.2.3