StaffCoder
Django
DjangoDjango 5.2Python 3.13
18 modules · 72 challengesSign up
Modules18 modules · 72 challenges
Validate what arrives with Django forms: typed fields, reusable validators, per-field and cross-field rules, and errors rendered where they belong.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Contact Form Basics

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

Declare a Django Form with typed required fields so the contact view stores validated data only.

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

Custom Field Rules

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

Add per-field validation with a clean_<field> method and a reusable validator shared across two forms.

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

Cross-Field Password Check

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

Compare two password fields in the form's clean() method and render field and non-field errors in the template.

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

Event Registration Form

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

Build an event registration form end to end: typed required fields, a reusable validator, per-field and cross-field rules, error rendering and the view flow.

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.