I\'m writing a Django app and while somewhat familiar with Django I\'m pretty unfamiliar with JavaScript. I\'m adding a few lines of JavaScript into one of my pages in orde
Yep that's bad practice.
Consider defining static folder for your app as described on official django documentation page: Managing static files and upload your js
via static template tag.
You could get data which in {{ info }}
variable by creating separate django view which would return JsonResponse and then perform AJAX Request to fetch desired data from newly createdd js file.