When I attempted the last exercise starting on Page 511 (Templates), my betterhello.html for the better function would not render in my browser, and I kept receiving a "TemplateDoesNotExist at ..." error. I could not figure out where I was going wrong until I went to the RealPython_Book2_Exercises directory that I had, navigated to your project, and started the server to find that the page worked in your project! I then started copying and pasting the 6 or so files of code one by one until the betterhello.html file rendered at localhost:8000/better/. I had the exact same code EXCEPT in the settings.py file (under the "hello_world_project" directory) where there was a TEMPLATES = [....] list in my file where there was not one in yours (starting at line 64 or so). When I deleted this entire list, my betterhello.html file rendered at localhost:8000/better/ . The TEMPLATES list python code looks like this:
When I attempted the last exercise starting on Page 511 (Templates), my betterhello.html for the
better
function would not render in my browser, and I kept receiving a "TemplateDoesNotExist at ..." error. I could not figure out where I was going wrong until I went to the RealPython_Book2_Exercises directory that I had, navigated to your project, and started the server to find that the page worked in your project! I then started copying and pasting the 6 or so files of code one by one until the betterhello.html file rendered at localhost:8000/better/. I had the exact same code EXCEPT in the settings.py file (under the "hello_world_project" directory) where there was a TEMPLATES = [....] list in my file where there was not one in yours (starting at line 64 or so). When I deleted this entire list, my betterhello.html file rendered at localhost:8000/better/ . The TEMPLATES list python code looks like this:Looks like they updated some functionality after the book was written. (I also had the same Django Version 1.8.2).