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

Fix: Use of runtime.render_template is deprecated. Use MakoService.render_template or a JavaScript-based template instead. #33589

Closed
1 task
Tracked by #32888
DanielVZ96 opened this issue Oct 24, 2023 · 0 comments · Fixed by #35033

Comments

@DanielVZ96
Copy link
Contributor

DanielVZ96 commented Oct 24, 2023

This warning is appearing during provisioning. It clutters logs and hinders dev experience (#32888).

The warning may be related to this line:

if getattr(self.runtime, 'render_template', None) is None:

or this one:

self.runtime.render_template(self.mako_template, self.get_context())

Which triggers this warning:

warnings.warn(

AC

  • The warnings stop cluttering logs
abdullahQureshee added a commit to edly-io/edx-platform that referenced this issue Aug 22, 2024
abdullahQureshee added a commit to edly-io/edx-platform that referenced this issue Sep 30, 2024
abdullahQureshee added a commit to edly-io/edx-platform that referenced this issue Sep 30, 2024
feanil pushed a commit that referenced this issue Oct 1, 2024
33589: Updated mako_block.py to use MakoService
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 a pull request may close this issue.

1 participant