Skip to content

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