I want to access a javascript variable in my views.py of a Django project
-
You cant. But you can use ajax call to send value to django.Nishant Nawarkhede– Nishant Nawarkhede2020-03-02 12:29:54 +00:00Commented Mar 2, 2020 at 12:29
-
Go and look at this - stackoverflow.com/questions/34147248/…Lambo– Lambo2020-03-02 12:30:20 +00:00Commented Mar 2, 2020 at 12:30
-
2you can not access javascritpt variable in python. because JavaScript used at frontend-side. and python(DJANGO) used at backend-side.Devang Hingu– Devang Hingu2020-03-02 12:42:38 +00:00Commented Mar 2, 2020 at 12:42
Add a comment
|