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 Django Templates Add a Detail View

Denny Ho
Denny Ho
4,472 Points

Django: Add a detail view, detail not showing up

Hi, I'm following along locally instead of using workspaces.

after following all the steps Kenneth showed in this video, whenever i go to http://127.0.0.1:8000/courses/1/ on my own local machine, i get a blank page

i also get these statuses in my terminal

[20/Oct/2015 16:52:24] "GET /courses/1/ HTTP/1.1" 200 310
[20/Oct/2015 16:52:24] "GET /static/css/layout.css HTTP/1.1" 304 0
[20/Oct/2015 16:52:24] "GET /static/css/layout.css.map HTTP/1.1" 404 1781

i guess my html pages are ok but something is wrong with my css? i downloaded all the project files from treehouse and have inserted the assets and layout.css file into my project structure already.

at this point, i'm not really sure how to render or show the course details page correctly. i'm not getting any improperly configured errors, just a blank white page. does anyone have any ideas/thoughts on what it could be? sorry my information is so scant. i'd appreciate any help.

[MOD : added formatting -cf]

Andrés Leal
Andrés Leal
9,563 Points

My problem was using url instead of path from the urls.py

1 Answer

Denny Ho
Denny Ho
4,472 Points

in rendering my view of course_details, I put 'courses' instead of 'course' in my context dict. hours lost T-T gg