~/talk

Django in Production with PEX

Talkat PyOhio 2019 · 2019-07-27..07-28· [devops-and-delivery]
links:none on file
slides:none on file

Explains packaging a Django app into a single-file .pex that contains app code and all dependencies, requires a matching Python interpreter version, and removes the need for portable virtualenvs. Shows moving manage.py into a package as an entry-point manage.py, adding custom Django management commands for Gunicorn and Celery, building the .pex, deploying with a systemd service plus an environment file, and running maintenance shells. Includes a demo workflow, a deploy script, and a GitHub repo with zero-downtime AWS deploy examples.

AI-written summary · about

  1. 0:00Start
  2. 2:48installing these packages in your virtual environment
  3. 9:54move it from the top level into one of your python packages
  4. 14:50pass in your settings as environment variables
  5. 15:10create an environment file
  6. 21:58review the multiple points of entry
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.