django passing variable to javascript in html template
I was trying to pass a variable to my html template in my django project and I can't seem to find a solution to why it doesn't work. The input of username_list: ['name1', 'name2'] back end: username_list = [user.username for…