HTML Code instead of Web page


#1

I am enjoying the book so far and I also keep getting hung up on small things. I don’t have a background in coding so this is all new to me. I am still in the very early part of the book and am running into a problem I can’t figure out. I followed the steps and installed Django successfully. I made the changes to url.py and views.py and then I went to my web page on localhost:8000 and it is showing the html code instead of the webpage. What am I doing wrong? I have gone back and run the python manage.py runserver command again and visited the localhost:8000 and it is still doing the same thing.


#2

Thanks for posting here!

Can you copy/paste your views.py code for the homepage here?