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 Basics Final Details Step Detail View

Dillon Reyna
Dillon Reyna
9,531 Points

Why are the steps displaying out of order?

You'll remember that, when ordering our steps earlier, we set 'Using the Shell' to position 0, and 'Learn About Strings' to position 1.

Why is it then that 'Using the Shell' is at /1/2 and not /1/1

I think it has to do with the fact that we added the second course after setting the ordering attribute, if you add addition courses you will see that it does have the "correct" ordering.

image

1 Answer

Haydar Al-Rikabi
Haydar Al-Rikabi
5,971 Points

Each "Step" instance has a primary key and an "order" attributes. What you see in the url is not the order number but rather the primary key of the "Step" within the database.