I have a Django template with an AJAX menu (where clicking on different menu items reloads a part of the page). Each menu click invokes a Django view function through AJAX and r
As discussed, you should use JSON to send the data from Python to JS; use JSON.parse() to deserialize the data for use in your JS.
JSON.parse()