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 trial

Python A Social Network with Flask Takin' Names Macros

Callum Anderson
seal-mask
.a{fill-rule:evenodd;}techdegree
Callum Anderson
Data Analysis Techdegree Student 10,200 Points

Register 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
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, Callum Anderson! As you're well aware, much of programming is case-sensitive. This includes file and folder names :smiley: 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! :sparkles: