Is it possible to retrieve a variable stored in Django admin using a JavaScript variable? For example:
var x = 2;
console.log("{{product.0}}"); // This retrieves data from admin
console.log( "{{product." + x + "}}" ); // But this throws an error saying couldn't parse remainder +x+
I would like to find a way to access my data using the x variable.