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 Django Forms More on Models Quiz Model

Katelyn Polahar
Katelyn Polahar
2,691 Points

Why are my step details not visible from ./courses/1 but only from .courses/1/t1 or /t2? They are visible in admin.

For the Django Forms video Quiz Model, I followed all of the steps carefully. I've been working the project locally on my own computer rather than in workspaces. I went back through the whole video to make sure I didn't miss any changes.

From the Courses page, if I click on Python Basics, I get the same view as I did before the changes in this video, which is to say, it just gives the course description, not the steps. If I go into admin, I can see the steps that I had previously added, and clicking 'view on site' leads me to a page that has the url ./courses/1/t1, which makes sense to me, given the t added to the regex in the video, but in the video, it is shown that the steps should be visible on a page which doesn't have the t in the url.

I can attach my code if I need to, but I've triple checked that it matches up with the video.

1 Answer

Katelyn Polahar
Katelyn Polahar
2,691 Points

NEVERMIND I FIXED IT!

I HAD misssed a typo, of sorts.

In models.py, under course_detail, I had {'course': course},{'steps': steps}, where it should have been {'course':course, 'steps': steps}.

i think you mean in views.py.