Bug: webpages get_context not working

Hi guys, I have been trying to return context from .py to display in front end html file through jinja templating. This issue started happening after upgrading to v13.

Older html and their context is working fine, only new html and updating context for the older html not working. Already tried clearing cache and etc.

.py
def get_context(context):
context.testing = frappe.session.user
return context

.html
{{testing}}

It just literally shows “{{testing}}” instead of the value testing variable holds.
Anybody can point me in the right direction? Appreciate it.

Hello,

I am facing the same issue with V13. does anyone have the solution?

One more thing get_context will work if i defined the path inside the hook.py

Awaiting reply.

1 Like