Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialCallum Anderson
Data Analysis Techdegree Student 10,200 PointsRegister template not working?
In this video about macros we are trying to preview some code in the preview port and when I try to view my register.html template I'm left with a jinga error that couldn't find my template, I was able to run the app.py to preview the home page so I'm unsure of any syntax that is missing or incorrect as I do in fact have my render template imported and the block code acknowledging the templates existence. I have left my workspace along with a screenshot of the what I see when attempting to preview the error. Any help is appreciated, I've been working hard at python and flask and would love to keep going. Thank you
Workspace Snap: https://w.trhou.se/1clxhc8z49
Jinga error: https://imgur.com/a/Smushej
1 Answer
Jennifer Nordell
Treehouse TeacherHi there, Callum Anderson! As you're well aware, much of programming is case-sensitive. This includes file and folder names You have a folder named "Templates", but it should be named "templates". Correcting the capitalization, stopping the server, and restarting it results in it being able to load the correct template. You can correct the capitalization by right-clicking the folder and choosing "Rename".
Hope this helps!
Callum Anderson
Data Analysis Techdegree Student 10,200 PointsCallum Anderson
Data Analysis Techdegree Student 10,200 PointsMy goodness I'll be sure to look more carefully next time.
Thank you so much!