Pycon Tanzania 2026

Human in the Loop: Building a Full-Stack Django App with AI Agents

PyCon Workshop, 120 min Web Beginner
Friday 27 November 10:00 to 12:00 Main Hall, State University Of Zanzibar

AI coding agents can scaffold a Django app in minutes, but they also produce insecure, untested, or plainly wrong code. In this hands-on workshop, we’ll build a full-stack Django app with an AI agent as a pair programmer. We’ll write reusable agent skills, prompt effectively, and enforce human review gates with tests, linters, and security checks. You’ll leave with a repeatable workflow for shipping AI-assisted Django code you can trust.

AI tools can now generate most of a working Django project, but speed without verification produces bugs, security holes, and code nobody understands. This workshop treats the AI agent as a fast but unreliable teammate and the developer as the reviewer who decides what ships.

Outline (90 min)

Setup and mindset (10 min): what AI agents are good and bad at in Django, and where they typically fail (ORM misuse, missing migrations, auth and CSRF mistakes).
Agent skills (20 min): writing reusable instruction files that encode your project’s conventions (models, views, DRF serializers, testing style), so the agent produces consistent code.
Prompting for Django (15 min): breaking features into small, verifiable tasks instead of “build me an app.”
Human review gates (25 min): catching bogus code with pytest-django, ruff, mypy/django-stubs, bandit, and manage.py check --deploy, plus a checklist for manual review.
Build together (15 min): the agent and the developer ship a small full-stack feature (model → API → frontend) end to end.
Wrap-up and Q&A (5 min)

Takeaways

A reusable agent-skill template for Django projects
A prompting workflow that keeps AI output small and reviewable
An automated plus manual review pipeline that catches AI-generated errors before they merge

Audience: intermediate. Attendees should know basic Django (models, views, URLs).
Requirements: a laptop with Python 3.11+, Git, and access to any AI coding assistant. A starter repo will be shared in advance.

#Django#Web#AI