mirror of
https://github.com/django/django.git
synced 2025-01-22 00:02:15 +00:00
Documented Context.get() method.
This commit is contained in:
parent
0ed20d5cc4
commit
4d9414098b
@ -415,6 +415,11 @@ dictionary syntax::
|
||||
>>> c['newvariable']
|
||||
'hello'
|
||||
|
||||
.. method:: Context.get(key, otherwise=None)
|
||||
|
||||
Returns the value for ``key`` if ``key`` is in the context, else returns
|
||||
``otherwise``.
|
||||
|
||||
.. method:: Context.pop()
|
||||
.. method:: Context.push()
|
||||
.. exception:: ContextPopException
|
||||
|
Loading…
x
Reference in New Issue
Block a user