StaffCoder
Django
DjangoDjango 5.2Python 3.13
18 modules · 72 challengesSign up
Modules18 modules · 72 challenges
Render pages with the Django template language: filters, loops, conditions, includes, and template inheritance.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Rendered Product Page

Sign up to unlock
100%3 of 3 solvedeasy
About this challenge

The product page has no template yet. Render the product from a template with a readable release date, a fallback for a missing manufacturer, a short description teaser and prices that always show two decimals.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Conditional Stock Listing

Sign up to unlock
100%3 of 3 solvedeasy
About this challenge

Every product row in the listing looks the same. Number the rows, alternate their styling, show a sold-out or low-stock badge from a reusable partial, and show a friendly message when the list is empty.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Site Skeleton Inheritance

Sign up to unlock
100%3 of 3 solvedeasy
About this challenge

Every page would need its own copy of the HTML skeleton and navbar. Build a base template with title and content blocks and an included navbar whose links come from URL names, then have each page extend it.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Storefront Pages

STAR
Solving it completes the module
100%3 of 3 solvedeasy
About this challenge

A storefront needs its list and detail pages built on a shared layout. Link each product row to its detail page, reuse one stock badge on both pages, format prices to two decimals, and show a teaser in the list and the full description on the detail page.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.