10 Tips Learned from Running A Python [Pyramid] Web App in Production
summary
Ten concrete ops and dev patterns for running Python web apps: add secure.py headers to automatically set OWASP-safe response headers; serve static assets from nginx with one-year cache + file-hash to get instant cache invalidation; use Let’s Encrypt and HTTP/2; structure code with viewmodels and services to swap DB layers and simplify tests; auto-run sitemap-driven tests to request thousands of pages; use Sentry/logbook for real-time error alerts; pin and auto-update deps (Dependabot/PyUp); auto-activate virtualenv on SSH.
AI-written summary · about
chapters (11)
- 0:00Introduction and overview
- 1:49Security with secure.pi
- 8:36Serving static content efficiently
- 12:50Let's Encrypt for SSL
- 14:37Application design patterns
- 26:16Logging and secrets management
- 31:31End-to-end testing with sitemaps
- 38:11Optimizing site speed
- 42:26Server environment setup
- 43:49Managing dependencies
- 44:51Summary and resources
