Detail Listing View and Template

Follow step-by-step instructions to create the view and template of the Detail Listing page.

For this chapter, we will work on the detailed view of the listings. If users want to see more pictures and more information about any particular listing, they will click on it to see this page.

Detail Listing URL

We added the code for the Detail Listing URL in line 15 in listings/urls.py which is opened by default in the widget at the end of this lesson. For the path to the detail listing page, we take the same path to all_listings but include detail_id which is the variable that will hold the listing number. For example, all_listings/1/ corresponds to the listing with detail_id=1.

Get hands-on with 1200+ tech skills courses.