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
Pycon SG
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Akshar Raaj
June 22, 2015
Programming
110
0
Share
Pycon SG
"Basics of WSGI" talk at Pycon SG 2015
Akshar Raaj
June 22, 2015
More Decks by Akshar Raaj
See All by Akshar Raaj
Getting started with Django
_akshar
0
90
Other Decks in Programming
See All in Programming
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
690
自動レビューエンジンの実装と運用 ~レビューのない世界へ~
kurukuru1999
2
310
Signal Forms: Beyond the Basics @ngBaguette 2026 in Paris
manfredsteyer
PRO
0
210
運用エージェントは "作る" から "育てる" へ - 記憶と自己進化の3層設計パターン / self-evolving-agents-three-layer-agent-design
gawa
12
3.4k
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
270
柔軟なPDFレイアウトエディタを支える型システム設計 — Discriminated UnionとConditional Typeの実践
minako__ph
4
1.3k
New "Type" system on PicoRuby
pocke
1
430
次世代リンターで探る、tsgo 時代における型認識カスタムルールの現実解
ytakahashii
3
1.4k
エージェンティックRAGにAWSで入門しよう!
har1101
4
110
Old Dog, New Tricks: The Java 25 Reinvention - JNation
bazlur_rahman
0
140
Why Laravel apps break—Mastering the fundamentals to keep them maintainable
kentaroutakeda
1
330
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
5
560
Featured
See All Featured
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
200
エンジニアに許された特別な時間の終わり
watany
107
250k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
240
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
150
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.3k
Git: the NoSQL Database
bkeepers
PRO
432
67k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
250
Context Engineering - Making Every Token Count
addyosmani
9
930
Building Applications with DynamoDB
mza
96
7.1k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
310
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
270
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Transcript
WSGI Concepts • WSGI standard • Server side • Application
side
WSGI Standard • Web Server Gateway • Not code, not
software. • Set of specifications. • Interface
Server side • Not in physical sense. • Understands http.
Like any general web server. • WSGIRequestHandler. WSGI compliant.
Application side • Contains logic. • Web framework is part
of “ WSGI implementation.
Web programmers • Already many servers exist. • Web programmers
write application side of WSGI.
Basic web application https://gist.github.com/akshar-raaj/d82a3d678b6989b020f7
Conditions for “application side” • Must be a callable. •
Must accept two arguments. • Must use start_response() to notify the server.
Not so basic • Add few if conditions. • Web
frameworks have a better way to handle url routing.
Using Gunicorn • Gunicorn is a WSGI compliant server. •
pip install gunicorn. • gunicorn application:application
make_server with Django • A normal Django project with “runserver”.
• Find where the “application” callable is. • dj.wsgi.application. • Use “make_server” to start a web server.
Gunicorn with Django • gunicorn dj.wsgi:application • gunicorn dj.wsgi:application
Gist Links • https://gist.github.com/akshar-raaj/ d82a3d678b6989b020f7 • https://gist.github.com/akshar-raaj/ f2500270c6f92631e1d1
Django project • The Django project we discussed during the
talk is on Github. • https://github.com/akshar-raaj/pyconsg
About me • I work at Agiliq. • Github: https://github.com/akshar-raaj
• Twitter: https://twitter.com/_akshar • Blog: