Official Django Polls App

By Maria D. Campbell

Tuesday, August 4, 2026 at 12:10 PM | 1 min read

Last modified on Tuesday, August 4, 2026 at 12:10 PM

$stack:python3/django/reusable-apps/admin/testing/flake8/black/djlint/pre-commit-hooks/project

Photo by David Clode on unsplash.com

This project is a Django Polls application built by following Django's official tutorial from the ground up, after refactoring an earlier version of the same app that had been sitting untouched for seven years. It's structured as a set of reusable apps rather than a single monolithic project.

Along the way it covers setting up a virtual environment and starting a Django project, defining and activating the polls models, working the interactive Django shell, registering the app in the admin interface, writing views and namespaced URLconfs, building out templates, adding a voting form, and introducing automated tests. The project also wires up static files for local development and the Django Debug Toolbar for inspecting requests in the browser. Code quality is enforced with flake8, Black, and djLint, run automatically through pre-commit hooks.

loading