Manage.py as the task runner
summary
Proposes using Django’s manage.py as the universal task runner, with simple commands like start/test/deploy that replace long README setup steps; shows how to add a new command in ~4 lines, how Django finds commands via installed_apps, and how to extend runserver by overriding run to launch a background Tailwind watch with subprocess (stdout/stderr piped) so CSS rebuilds alongside the dev server. Describes calling async libraries, using Python packages (pandas, python-onepassword), and a GitHub Action invoking manage_certificates to auto-rotate TLS certs in production.
AI-written summary · about
chapters (9)
- 0:00Introduction and welcome
- 1:52Why manage.py for task running
- 8:53How manage.py commands work
- 11:43Creating new commands
- 15:18Extending existing commands
- 19:59Integrating Tailwind with runserver
- 23:11Advanced use cases and power
- 27:19Real-world example with certificates
- 28:48Q&A session
related talks
26mAutomating initial deployments with django-simple-deploy with Eric Matthes
53mDjango productivity tips and tricks
53mDjango productivity tips and tricks
26mWhat Django Deployment is Really About
29mScaling Django to 500 apps
02h 25mModern Python Developer's Toolkit
01h 06mEffective Django
21mMigrating to Success: Unleashing the Power of Django Migrations
