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 trialAndy Hughes
8,479 PointsDon't forget {% block content %}{% endblock %} for layout
In the video "add some layout", Kenneth shows you a pre-built layout.html file which he then starts adding authentication code to.
However, if you decide to build your own layout template file, you need to remember to add the {% block content %} <your content goes here> {% endblock %}. Otherwise, like me, you end up scratching your head for a good while trying to understand why (when you copied what Kenneth is doing), your links on your homepage no longer redirect to your register/login templates.
I know this has been covered before in way back videos, but this threw me.
In the video, this content block is already added and Kenneth doesn't explain that. So just be aware. :)