The famous polls app from the official Django tutorial.
The tutorial is available here. The code in this repository reflects the state of the tutorial as of November 23, 2024.
This repository serves as a project starter for those who need a quick Django setup with a simple app. To enhance its utility, some additional tooling has been included:
- uv for dependency management
- pre-commit for code quality, incorporating:
pre-commit-hooksruffdjango-upgradecodespell
- GitHub Actions for pre-commit and test pipelines
- Dependabot for automated dependency updates
The resulting Django project has some changes from the original tutorial:
- Uses
src/as the source folder name - Uses
core/for the core configuration folder - Removes default docstrings from initial files
- Adds
# noqacomments where it's needed
- Clone the repository
- Set up the virtual environment using uv:
uv venv source .venv/bin/activate uv sync - Apply database migrations:
python manage.py migrate
- Create a superuser account:
python manage.py createsuperuser
- Start the development server:
python manage.py runserver