~/talk

Advanced Aspects of the Django Ecosystem: Haystack, Celery & Fabric

Talkat EuroPython 2011 · 2011-06-20..06-26· [django, python]
slides:none on file

Three concrete tools and how they are used: Haystack connects Django models to Whoosh, Solr or ZAPEN backends so a working full‑text search over mixed models is built in hours (museum demo won a contest) and scales via Solr faceting, batching updates (100 docs) and Solr master/slave replication routed through nginx (four slaves in production). Celery runs background jobs (URL enrichment via oEmbed + HEAD/partial fetch, PDF detection), uses Redis as broker and memcached for transient results, and implements fan‑out activity streams asynchronously. Fabric automates SSH deployments, bootstraps Redis, manages symlinked releases with rollback and generates server/nginx configs from a servers.json roles file.

AI-written summary · about

  1. 0:00Intro
  2. 2:25Haystack
  3. 7:08Pick your backend
  4. 15:34Staying fresh
  5. 19:31nginx + Solr replication trick
  6. 26:16Tasks?
  7. 27:04Trivial example
  8. 29:37The task itself...
  9. 31:04Behind the scenes...
  10. 33:53Configuration
  11. 35:44Advanced Celery
  12. 36:59The Activity Stream pattern
  13. 43:16Automated deployments
  14. 44:20Simple examples
  15. 49:16Rollback with symlinks
  16. 50:34servers.json
  17. 51:46In the fabfile.py
  18. 53:01Dynamic nginx config
~/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.