Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed render bugs in render_to_temporary_file #190

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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