Skip to content

Projects

What you'll build in PydjaVerse

Every world ends with real code you write yourself, in Python and Django. Each project comes from a client or a boss with a story, and every step is checked against tests when you submit it. Each preview below is real output from one of the project's tests: what a finished solution prints.

12 client projects 8 boss battles 8 worlds

Python Village

Learn programming fundamentals with Python

Beginner

A friendly village where you learn to think like a programmer. Write your first Python programs and master variables, decisions, loops, functions, and Python's built-in collections: the foundation of everything that follows.

Client project

Market Stall Calculator

for Tilda Marsh, Marsh & Daughters Market Stall

Tilda adds up every customer's fruit on a slate, and on busy mornings the sums go wrong. She wants a small calculator program: one function for the price of a bag of fruit, and a proper four-operation calculator that never crashes on her, even when someone asks it to divide by zero.

  1. The price of a bag. A function that prices a bag of fruit with a discount.
  2. Four operations. A calculate() function for +, -, *, and /.
  3. Open for business. The interactive calculator Tilda will use at the stall.

Variables and arithmeticFunctions and returnmatch or if/elifinput()

Client project

Festival Guessing Game

for Fenn Lightfoot, The Lantern Games Hall

Fenn runs the guessing game at the Lantern Festival: think of a number, and players guess until they find it. Last year, a tired helper gave wrong hints all evening. Fenn wants a program that gives honest hints, counts the guesses, and awards a fair rating.

  1. Honest hints. Compare a guess with the secret.
  2. Fair ratings. Rate a player's guess count.
  3. Let the games begin. The full game loop.

Comparisons and if/elifwhile loopsFunctions and returninput()

Client project

Village School Report Cards

for Ms. Quill, Python Village School

Every term, Ms. Quill marks dozens of tests and writes every report card by hand. She'd like a program that turns scores into letter grades, works out class averages, and prints neat report lines, so she can spend her evenings reading instead.

  1. Letter grades. Turn a score into a letter.
  2. Class average. Average a list of scores.
  3. Report cards. Build the report lines.

if/elifFunctions and returnLists and loopsf-strings

Client project

General Store Shopping Lists

for Bram Oakley, Oakley's General Store

Bram takes orders all day and keeps them in his head, which works until it doesn't. He needs a shopping list manager: add items without duplicates, price a list from the store's price book, and a little command program his assistant can use at the counter.

  1. No duplicates. Add items to a list only once.
  2. Price the list. Total a list from the price book.
  3. At the counter. The command program the assistant uses.

ListsDictionarieswhile loopsmatchFunctions

Boss battleThe Archive Imp

The Scrambled Ledger

On the eve of report day, the Archive Imp crept into Python Village School and scrambled Ms. Quill's ledger: names vanished, grades of 140 appeared, and nobody knows who's top of the class. Only a student manager written from scratch, with everything you've learned in Python Village, can set the records straight.

  1. Enrol the students. Keep the records in a dictionary of names and grade lists.
  2. Guard the grades. Record grades, refusing impossible ones.
  3. Find the top student. Averages per student, and the best of them.
  4. The student manager. Tie it all together in a command-line program.

Toolsmith’s Forge

Write practical, well-organised Python programs

Beginner

The forge where scripts become tools. Organise code into modules, work with files and data formats, handle errors gracefully, and set up projects the way professionals do with virtual environments and pip.

Client project

The Post Office Contact Book

for Odo Brightwater, Forge Post Office

Odo's addresses live on scraps of paper, and every windy day a few of them blow away. He wants a contact book program: add people, search for them by name or email, and, most importantly, never forget anyone when the program closes.

  1. Address cards. Add contacts to the book, refusing bad ones.
  2. Never forget. Save the book to JSON and load it back.
  3. Open the counter. Search, plus the interactive program Odo will use.

DictionariesRaising exceptionsJSON filesCommand loops

Client project

The Inkwell Word Counter

for Wren Inkwell, The Inkwell Press

Wren pays every writer by the word, and counts the words with a pencil and a lot of patience. She wants a real tool: run it on any manuscript file, and it reports the lines, words, and characters, and which words the writer leans on most (her writers love the word "the").

  1. Count everything. A function that counts lines, words, and characters.
  2. Favourite words. The most common words in a manuscript file.
  3. Off the press. The command-line tool Wren runs on every manuscript.

Reading filescollections.CounterHandling exceptionsargparse

Boss battleThe Receipt Moth

The Nibbled Ledger

Every night, the Receipt Moth flutters into the Forge's counting house and nibbles the paper receipts. Nobody knows what the coal cost last month, or whether the iron was paid for at all. Only a proper expense tracker, one that validates, saves, summarises, and exports, can keep the forge's money safe from those hungry wings.

  1. Record the receipts. Validate each expense before it goes in the ledger.
  2. Out of the Moth's reach. Save the expenses to JSON and load them back.
  3. Count every coin. Monthly totals per category, and a CSV export.
  4. The Moth's last stand. A command-line tool that ties it all together.

Object Citadel

Design object-oriented programs and test them

Intermediate

A citadel built from objects. Design classes, compose them into larger systems, and use Python's deeper features: dunder methods, dataclasses, type hints, generators, decorators, and context managers. Then learn to test everything with pytest.

Client project

The Goldwell Bank System

for Mira Goldwell, Goldwell Citadel Bank

Goldwell Bank still keeps its accounts in a ledger with crossings-out. Mira wants a proper model: accounts nobody can tamper with, savings accounts that earn interest, and transfers that never lose a coin, even when they fail halfway.

  1. The account. An account that guards its own balance.
  2. Savings. A savings account that earns interest.
  3. The bank. A bank of accounts, with safe transfers.

Classes and methodsPropertiesInheritance and super()Composition

Client project

The Citadel Stores Inventory

for Quartermaster Harrow, The Citadel Stores

Quartermaster Harrow counts the stores by hand, and the numbers never agree twice. He wants an inventory program: products with prices and quantities, a warning list of what's running low, and a save file so the count survives the night.

  1. Products. A dataclass for each product.
  2. The stores. All the products, with a low-stock warning.
  3. Through the night. Save the stores to JSON and load them back.

DataclassesType hintsGeneratorsJSON

Boss battleThe Ink Wraith

The Blotted Archive

At midnight the Ink Wraith seeped through the Citadel library, blotting out the catalogue and scrambling who borrowed what. Worse, it whispers bugs into any code that tries to fix the mess. Rebuild the library from objects, then write a test suite sharp enough to catch every trick the Wraith plays.

  1. Rebuild the catalogue. Dataclasses for books and members, and the library's own error.
  2. Open the lending desk. A Library class that lends books and takes them back.
  3. Light the reading room. What's on the shelves, and who has what.
  4. Seal the records. A test suite that catches the Ink Wraith's tricks.

Web Crossroads

Understand the web and databases that Django builds on

Intermediate

The crossroads every web developer passes through. Learn how browsers and servers talk over HTTP, enough HTML and CSS to build pages, and how to store and query data with SQL. Then call real web APIs from Python.

Client project

The Harbour Weather Report

for Captain Isla Vane, Crossroads Harbour

Every morning Captain Vane decides which ships may sail, and she wants the decision based on data, not gulls. Her weather service is a web API like the public ones meteorologists offer (here, the practice API in local_api.py, running on your computer): current weather and forecasts for each city, as JSON. Build the code that asks it and turns the answers into her morning report.

  1. Ask the service. Fetch one city's weather, with clear errors.
  2. The morning report. One line per city, warmest first.
  3. The harbour bulletin. Forecast summaries for every city.

HTTP and status codesJSON APIsrequestsCustom exceptions

Boss battleThe Static Storm

The Static Storm

A crackling storm has settled over the Crossroads. It scrambles every signal passing through: weather stations send their readings, and they vanish into static. Build a script that pulls each station's data from its API and stores it in a database the storm can't touch, then report what the stations saw.

  1. Lay the foundations. Tables for stations and their readings.
  2. Catch the signals. Pull every station and its readings from the API.
  3. Seal them in stone. Store everything, safely, without duplicates.
  4. Calm the storm. Tie it together: sync the API into a database, and report.

Django Gate

Build data-driven websites with Django

Intermediate

Pass through the gate into web development with Django. Create projects and apps, route URLs to views, render templates, model your data, and manage it all through the admin.

Client project

The Pell Cookbook Site

for Nana Pell, The Pell Cookbook Club

Nana Pell's recipes live in shoeboxes, on index cards stained with sixty years of gravy. Her grandchildren have promised to put them online: a home page of categories, a page per category, and a page per recipe, with the instructions exactly as she wrote them. You're building it with Django.

  1. The recipe box. Models for categories and recipes.
  2. Three pages. Views for the home, category, and recipe pages.
  3. Nana's card, online. The recipe page template.

Models and relationshipsThe ORMViews and URLsTemplates and inheritance

Boss battleThe Gate Warden

The Wiped Chronicle

The town writes its news, the Gatehouse Chronicle, in chalk on the great gate's door. Every night the Gate Warden wipes it clean, grumbling about "unauthorised notices". Build the Chronicle a real home: a Django blog with categories, an admin for the editors, pages for readers, and drafts no reader can see.

  1. Carve the records. Models for categories and posts.
  2. Hand over the keys. An admin for the town's editors.
  3. Open the gates. Pages for readers: only published posts.
  4. Write the chronicle. The post list template.

Guild of Forms

Handle users, forms, and permissions securely

Advanced

The guild that guards every input. Build forms that validate what users send, add accounts with sign-up and sign-in, control who can do what, and keep your site safe from common attacks.

Client project

The Lantern Festival Sign-ups

for Marla Quickstep, The Festival of Lanterns

Marla's lantern festival has two hundred hopefuls and forty places, and last year's paper list was a disaster: double bookings, illegible emails, and more names than places. She wants a sign-up page that counts the places left, refuses duplicates and late arrivals politely, and confirms every successful sign-up.

  1. The sign-up sheet. A form that knows the festival's rules.
  2. The sign-up desk. The event page: show, validate, confirm, redirect.
  3. The festival poster. The event page template.

ModelFormsValidationMessagesCSRF-protected templates

Boss battleThe Forgery Guild

The Forged Badges

A rival band, the Forgery Guild, has flooded the town with fake membership badges. Impostors walk into the guild hall, and nobody can tell who's real, let alone who's an officer. Build a membership site no forger can fool: real accounts, profiles only their owners can edit, and ranks only officers can grant.

  1. The member roll. A profile for every member, with a role.
  2. Badges that can't be forged. Forms for joining and editing profiles.
  3. Open the doors. Joining, your profile, and editing it.
  4. The officers' seal. An officers-only hall, and promotions.

API Tower

Build secure, scalable REST APIs

Advanced

Climb the tower that every app talks to. Design REST APIs with Django REST Framework, secure them with tokens and permissions, page and filter results, and move to PostgreSQL, caching, and background work.

Client project

The Scriptorium Notes API

for Scribe Orrin Ink, The Tower Scriptorium

The scribes of the Tower Scriptorium take notes everywhere: on stairs, in the bell tower, in the margins of other notes. Orrin wants a notes app on every scribe's phone, and you're building the API behind it: sign in with a token, keep each scribe's notes private, pin the important ones, and find anything with a search.

  1. The note's shape. A serializer with its rules.
  2. Private notes. The notes endpoints, each scribe seeing only their own.
  3. Keys to the tower. API settings: tokens, sign-in, pages.

SerializersViewSets and routersToken authenticationPagination and search

Boss battleThe Static Imp

The Jammed Courier

The guild's mobile app, the Tower Courier, launches at dawn, and the Static Imp has jammed its API: answers arrive garbled, anyone can change anyone's quests, and half the endpoints have vanished. Rebuild the API the app depends on: clear serializers, owner-only controls, every action, and the routes that tie it together.

  1. Shape the signal. Serializers for quests and comments.
  2. Lock the controls. Only a quest's owner may change it.
  3. Restore the channels. The quest ViewSet, its actions, and the me endpoint.
  4. Open the tower. Route sign-in, the router, and the me endpoint.

Production Summit

Test, secure, and deploy a complete web application

Expert

The last climb. Test a Django project properly, harden it with the security checklist, configure it for production, and deploy it behind Gunicorn and Nginx, with Docker, logging, and monitoring.

Boss battleThe Outage Wraith

The Midnight Outage

At dawn the guild's Bounty Board opens to the whole realm, and the Outage Wraith waits for it: it feeds on releases that were never tested, settings that leak secrets, servers nobody watches, and deploys nobody checked. Prove the board works, seal its settings, light its health beacon, and guard the last gate before release.

  1. Prove it works. Django tests that catch the board's bugs.
  2. Seal the gates. Production settings from the environment.
  3. Light the beacon. A health check that logs its failures.
  4. The last gate. A predeploy check that names every problem.

How projects work

Each step is a coding challenge you write in the Coding Arena. When you submit it, your code runs on your own computer against tests, and you see which checks pass, with hints if you're stuck. You earn XP for every step and for finishing the project. Projects unlock as you complete the lessons they need.

The previews are trimmed to fit: a line ending in "…" goes on, and a "…" on its own line stands for lines left out.