As I know, there is no way to use Django template language inside Javascript block so I searched for a way how to do it, I found a Django app on github called django-jsrender but unfortunately, there isn't enough documentation for this app and when I tried to use it I couldn't and this is my code:
[image: Capture.PNG] <about:invalid#zClosurez> -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a1c20606-bf66-4638-a006-be592a938c66%40googlegroups.com.

