[Answered ]-Python django variables from views.py to html show the code intead of the value

1👍

In order to fix this you need to check index.html by running the server

python manage.py runserver

and going to the url that leads to index.html

👤nCoder

0👍

if the result in the browser is like the one you said, are you opening the HTML file directly? because if Django rendered the template it wouldn’t show this. even if the data is wrong or there is nothing, it’ll just display nothing

Leave a comment