Re: [Django] #35296: The autoescape parameter to Engine() seems to have no effect on Context. (was: The autoescape parameter to Engine() seems to have no effect)

5 views
Skip to first unread message

Django

unread,
Mar 13, 2024, 12:28:52 AM3/13/24
to django-...@googlegroups.com
#35296: The autoescape parameter to Engine() seems to have no effect on Context.
---------------------------------+--------------------------------------
Reporter: Roman Donchenko | Owner: nobody
Type: Uncategorized | Status: closed
Component: Template system | Version: 5.0
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* resolution: => invalid
* status: new => closed
* summary: The autoescape parameter to Engine() seems to have no effect =>
The autoescape parameter to Engine() seems to have no effect on
Context.

Comment:

`Context` has it's own `autoescape` parameter that engine shouldn't
override. You can pass `Context` with `autoespace=False` or use
`render_to_string()` with a template name.
--
Ticket URL: <https://code.djangoproject.com/ticket/35296#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages