summaryrefslogtreecommitdiff
path: root/docs/narr/hooks.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/narr/hooks.rst')
-rw-r--r--docs/narr/hooks.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst
index ace2c847b..533024352 100644
--- a/docs/narr/hooks.rst
+++ b/docs/narr/hooks.rst
@@ -164,6 +164,8 @@ code that implements a minimal forbidden view:
an alterate forbidden view. For example, it would make sense to
return a response with a ``403 Forbidden`` status code.
+.. _changing_routes_context_factory:
+
Changing the Default Routes Context Factory
-------------------------------------------
@@ -184,6 +186,7 @@ Python dotted name to the context factory you want to use. Here's
some sample code that implements a minimal context factory:
.. code-block:: python
+ :linenos:
class RoutesContextFactory(object):
def __init__(self, **kw):