Opened 5 years ago

Last modified 3 years ago

#30923 closed Cleanup/optimization

Out of date examples in docs that call render() with a Context instance instead of regular dict — at Initial Version

Reported by: Alasdair Nicol Owned by: nobody
Component: Documentation Version: dev
Severity: Normal Keywords: Context render template
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Following #30906, I found a couple more examples in the docs that are calling the template's render method with a Context instance when they should use a regular dict.

I found these by searching with the following commands:

cd docs
git grep 'render.*Context'
git grep 'from django.*import.*Context'

Those grep commands also return results from ref/templates/api.txt, but they are ok because they use t = Template() instead of loader.get_template().

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top