Skip to content

Fixed render bugs in render_to_temporary_file#190

Open
authcode wants to merge 2 commits intoincuna:masterfrom
authcode:master
Open

Fixed render bugs in render_to_temporary_file#190
authcode wants to merge 2 commits intoincuna:masterfrom
authcode:master

Conversation

@authcode
Copy link

@authcode authcode commented Nov 15, 2021

No version of template render() has ever accepted a request argument, or a dict context. Conversely, render_to_string does accept an optional request kwarg.

It seems render_to_temporary_file() only works if the template argument is a string (i.e. path to a template file).

authcode and others added 2 commits November 15, 2021 15:39
No version of template render() has ever accepted a request argument, or a dict context. Conversely, render_to_string does accept an optional request kwarg.
@maxpeterson
Copy link
Member

maxpeterson commented Feb 25, 2022

No version of template render() has ever accepted a request argument, or a dict context.

django.template.backends.django.Template.render() accepts a request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants