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

Jade Liu
Jade Liu
8,152 Points

Not sure why show blank page

Before I have added the url pattern path('<int:course_pk>/<int:step_pk>/', views.step_detail), it works fine to show the page However, when I added the step detail view, the page can show correctly. But the page only show blank page, and I am sure it is not the 404 problem.

Here is my UrlConf:

urlpatterns = [ path('', views.course_list), path('<int:course_pk>/<int:step_pk>/', views.step_detail), path('<int:pk>/', views.course_detail), ]

Anyone can help me figure out what's the problem?


1 Answer

Jade Liu
Jade Liu
8,152 Points

Problem solved. There is a typo in my course_detail.html.

It seems that if django renders a blank page, the problem may be related to your html file.