File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,13 @@ variable to the context and a second processor adds a variable with the same
335
335
name, the second will override the first. The default processors are explained
336
336
below.
337
337
338
+ .. admonition:: When context processors are applied
339
+ When you use ``RequestContext``, the variables you supply directly
340
+ are added first, followed any variables supplied by context
341
+ processors. This means that a context processor may overwrite a
342
+ variable you've supplied, so take care to avoid variable names
343
+ which overlap with those supplied by your context processors.
344
+
338
345
Also, you can give ``RequestContext`` a list of additional processors, using the
339
346
optional, third positional argument, ``processors``. In this example, the
340
347
``RequestContext`` instance gets a ``ip_address`` variable::
You can’t perform that action at this time.
0 commit comments