Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Django Boston - 2011
Search
daniellindsley
February 01, 2012
Technology
4
260
Django Boston - 2011
A quick (but not so quick IRL) introduction to Haystack & Tastypie.
daniellindsley
February 01, 2012
Tweet
Share
More Decks by daniellindsley
See All by daniellindsley
The Unenviable Tutorial
daniellindsley
3
88
The March To 3
daniellindsley
1
120
How (Not) To Build An OSS Community
daniellindsley
1
220
Avoiding The Search Hall Of Shame
daniellindsley
3
350
API Design Tips
daniellindsley
14
3.8k
Building A Python-based Search Engine
daniellindsley
20
2.5k
RESTful APIs with Tastypie
daniellindsley
19
2.8k
Getting The Most Out Of Haystack
daniellindsley
5
210
Other Decks in Technology
See All in Technology
8週連続ウェビナー_イチから学ぶFivetran
cmsuzu
0
170
社内共通ルールを値オブジェクトにして社内ライブラリとして運用してみた話
leveragestech
2
1.2k
検証からプロダクトへ: シームレスなLLM開発の ためのしくみ作り
nunukim
1
200
Introducing Pkl
enomotok
0
100
技術広報として2023年度に頑張ったこと / What we did well in FY2023 as a DevRel
pauli
5
490
ハイパフォーマンスな組織をつくるための開発生産性の考え方 / developer-productivity-high-performer-link-and-motivation
lmi
3
270
私のRSpecの書き方 / How I write RSpec
tmtms
4
840
ビジネスロジックを「型」で表現するOOPのための関数型DDD / Functional And Type-Safe DDD for OOP
yuitosato
29
12k
AMLD 2024 - Build Your Own GPT
donlelef
1
260
サービスメッシュ環境における OpenTelemetry 活用 / OpenTelemetry in Service Mesh
k6s4i53rx
2
860
データ品質をコード化! LINEヤフーのMLOpsを最適化する "ACP Data Quality" の紹介
lycorptech_jp
PRO
2
240
統計的学習理論読み Chapter 2
kmatsui
1
260
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
28
12k
Gamification - CAS2011
davidbonilla
76
4.5k
Principles of Awesome APIs and How to Build Them.
keavy
119
16k
Clear Off the Table
cherdarchuk
82
310k
Fashionably flexible responsive web design (full day workshop)
malarkey
397
65k
Designing the Hi-DPI Web
ddemaree
275
33k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
18
1.7k
Build The Right Thing And Hit Your Dates
maggiecrowley
23
1.9k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
124
32k
Web Components: a chance to create the future
zenorocha
304
41k
Reflections from 52 weeks, 52 projects
jeffersonlam
343
19k
Testing 201, or: Great Expectations
jmmastey
27
6.3k
Transcript
None
Hi.
I’m Daniel.
I run Toast Driven.
Haystack http://haystacksearch.org/
What’s Haystack? • Pluggable backends • Solr, Elasticsearch, Whoosh, Xapian
• Advanced features • Faceting, More Like This, Spatial • Looks/feels like Django’s API
How so? • SearchIndex looks like a Form:
None
No, squint harder.
How so? • SearchQuerySet looks like QuerySet
Why?
Why? Don’t Make Me Think
Why? Don’t Make Me Think
Demo-Time.
So that’s Haystack.
So that’s Haystack.
Now for something a little different...
Tastypie http://tastypieapi.org/
What Is Tastypie? • A REST framework for Django •
Extension by Design • Models (but not just Models) • Proper use of HTTP • Ideal for CRUD operations & beyond
Pie?
Pie? Pie? Pie? Pie? Pie? Pie? Pie? Pie?
He can’t haz. But you can!
Define A Resource
Hook Up The URLconf
Done.
What’d You Get? • Full GET / POST / PUT
/ DELETE / PATCH • Serialized in JSON / XML / YAML / bplist • Authentication • Filtering • Discovery Views • And more!
Demo-time.
HTTP 418
I’m Daniel Lindsley of Toast Driven @toastdriven http://toastdriven.com/
Photos: http://www.flickr.com/photos/strangejourney/3175383671/ http://www.peachpit.com/ShowCover.aspx?isbn=0321344758 http://corgiaddict.com/post/14272461379 http://www.flickr.com/photos/57928359@N08/5328229600/