From 091852ef88d3c5255858d44b93b5f3f5aea16c22 Mon Sep 17 00:00:00 2001 From: Mieszko Date: Wed, 12 Nov 2014 13:34:01 +0100 Subject: [PATCH] Minor typos cont. --- docs/patterns/lazyloading.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/patterns/lazyloading.rst b/docs/patterns/lazyloading.rst index 04be53f7..8388102a 100644 --- a/docs/patterns/lazyloading.rst +++ b/docs/patterns/lazyloading.rst @@ -32,7 +32,7 @@ Imagine the current application looks somewhat like this:: def user(username): pass -Then the centralized approach you would have one file with the views +Then, with the centralized approach you would have one file with the views (:file:`views.py`) but without any decorator:: def index(): @@ -54,7 +54,7 @@ Loading Late ------------ So far we only split up the views and the routing, but the module is still -loaded upfront. The trick to actually load the view function as needed. +loaded upfront. The trick is to actually load the view function as needed. This can be accomplished with a helper class that behaves just like a function but internally imports the real function on first use::