~/talk

10 Tips Learned from Running A Python [Pyramid] Web App in Production

Talkat Python Web Conf 2020 · 2020-06-17..06-19· [devops-and-delivery, python]
slides:none on file

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

  1. 0:00Introduction and overview
  2. 1:49Security with secure.pi
  3. 8:36Serving static content efficiently
  4. 12:50Let's Encrypt for SSL
  5. 14:37Application design patterns
  6. 26:16Logging and secrets management
  7. 31:31End-to-end testing with sitemaps
  8. 38:11Optimizing site speed
  9. 42:26Server environment setup
  10. 43:49Managing dependencies
  11. 44:51Summary and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.