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
360
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
非同期推論システムによるコスト削減と信頼性向上
koki_nishihara
1
360
ワールドカフェI /チューターを改良する / World Café I and Improving the Tutors
ks91
PRO
0
150
Rustで「プリズモイダル法」を利用して「土量計算」をガチでやる
nokonoko1203
1
270
Gradle Build Scanを使ってビルドのことを知ろう potatotips #87
tomorrowkey
2
150
開発パフォーマンスを最大化するための開発体制
ham0215
7
1.1k
障害対応をちょっとずつよくしていくための 演習の作りかた
heleeen
1
1.6k
Python と Snowflake はズッ友だょ!~ Snowflake の Python 関連機能をふりかえる ~
__allllllllez__
2
140
【基本】データベース設計
oracle4engineer
PRO
2
150
データベース02: データベースの概念
trycycle
0
180
生産性向上チームの紹介
cybozuinsideout
PRO
1
910
The AI Revolution Will Not Be Monopolized: Behind the scenes
inesmontani
PRO
1
160
LangSmith入門―トレース/評価/プロンプト管理などを担うLLMアプリ開発プラットフォーム
os1ma
5
700
Featured
See All Featured
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
Become a Pro
speakerdeck
PRO
12
4.6k
A Tale of Four Properties
chriscoyier
152
22k
A better future with KSS
kneath
231
16k
Reflections from 52 weeks, 52 projects
jeffersonlam
345
19k
How GitHub Uses GitHub to Build GitHub
holman
468
290k
We Have a Design System, Now What?
morganepeng
44
6.8k
GitHub's CSS Performance
jonrohan
1025
450k
Side Projects
sachag
451
41k
The Cult of Friendly URLs
andyhume
74
5.7k
GraphQLとの向き合い方2022年版
quramy
33
12k
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/