StaffCoder
Django
DjangoDjango 5.2Python 3.13
18 modules · 72 challengesSign up
Modules18 modules · 72 challenges
Serve the assets that ship with the code and the files users upload, each resolved through its own tag and kept in its own root.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Styled Pages With Static Assets

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

Serve a stylesheet and a logo through Django's static files: the app static layout and the static template tag instead of hardcoded paths.

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

Document Upload Handling

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

Accept a validated PDF upload through a Django form and store it under MEDIA_ROOT, with the multipart encoding the browser needs.

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

Avatar Image Field

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

Add an image field with an upload-to path and render the stored image's URL, falling back to a static placeholder.

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

Gallery Uploads Page

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

Build a photo gallery end to end: static assets through the static tag, validated image uploads into a dated media path, and a listing with a placeholder fallback.

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.