K
K
Kirill2020-05-10 02:46:54
Django
Kirill, 2020-05-10 02:46:54

How to pass context to js script?

Is it possible to pass context from views.py not only to the template itself, but also to the JS script for further processing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2020-05-10
Matytsyn @ArsenyMatytsyn

https://stackoverflow.com/questions/15321431/how-t...
In the django documentation itself, as far as I remember, this was also covered, as it was in Jinja.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question