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

HTML

Lynda Montgomery
Lynda Montgomery
766 Points

.html error while doing templates in django

I get an error on the first percent symbol in the code.

{% for course in courses %}

^where it points to

<h2>{{ course.title }} </h2> {{ course.description }}

{% endfor %}

can you post the whole file, and also the path in your project Also post the error as it is printed

Lynda Montgomery
Lynda Montgomery
766 Points

I don't know how to post the actual file but that is all the code, and this is the error

File "/Users/Jacob/learning_site/courses/templates/courses/course_list.html", line 1 {% for course in courses %} ^ SyntaxError: invalid syntax

2 Answers

assuming you are using workspaces can you do this: https://teamtreehouse.com/community/workspace-snapshots

Lynda Montgomery
Lynda Montgomery
766 Points

im not using the workspace, using sublime and terminal

You can zip up the whole thing and post it somewhere then we can all take a look, or just post here as comment using the markdown cheatsheet notes to format correctly