StaffCoder
Django
DjangoDjango 5.2Python 3.13
18 modules · 72 challengesSign up
Modules18 modules · 72 challenges
Replace hand-rolled views with generic class-based views: list, detail, create, update and delete, paginated, gated and owner-scoped.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Paginated Article List

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

Configure a Django ListView with its template, context name, ordering and built-in pagination.

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

Article Detail And Create

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

Wire a DetailView and a CreateView with a form class, redirecting to the new object through get_absolute_url.

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

Scoped Edit And Delete

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

Restrict UpdateView and DeleteView to the signed-in user's own objects by overriding get_queryset, with login required and defined redirects.

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

Notes CRUD Application

STAR
Solving it completes the module
75%3 of 4 solvedmedium
About this challenge

Build a complete CRUD surface with generic class-based views: paginated owner-scoped list with extra context, detail, create attaching the owner server-side, and scoped update and delete behind a login gate.

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.