3 ms·
Also useful is adding a breakpoint in a template using a custom template tag. @register.simple_tag(takes_context=True) def set_breakpoint(context, *arg
by tmnvix 2y ago
Also useful is adding a breakpoint in a template using a custom template tag.
@register.simple_tag(takes_context=True)
def set_breakpoint(context, *args):
vars = [arg for arg in locals()["args"]]
breakpoint()
Then add the breakpoint in your template wherever you like with {% set_breakpoint %}