In the templates documentation for python programmers
(http://www.djangoproject.com/documentation/templates_python/#subclassing-context-djangocontext)
it's pointed out that a DjangoContext is different in that it 'takes an
HttpRequest object as its first argument.'

Then in this example where you point out the third positional argument
for the DjangoContext, you miss it entirely:

<pre>
def ip_address_processor(request):
    return {'ip_address': request.META['REMOTE_ADDR']}

def some_view(request):
    # ...
    return DjangoContext({
        'foo': 'bar',
    }, [ip_address_processor])
</pre>

shouldn't it be

<pre>
    return DjangoContext(request, {
        'foo': 'bar',
    }, [ip_address_processor])
</pre>

? This would make more sense.

Alice

Reply via email to