1👍
You can do it like this:
step_from_django = JSON.parse({{ step_count_date|safe }});
or simply like this:
step_from_django = {{ step_count_date|safe }};
Source:stackexchange.com
1👍
You can do it like this:
step_from_django = JSON.parse({{ step_count_date|safe }});
or simply like this:
step_from_django = {{ step_count_date|safe }};