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
88
Other Decks in Programming
See All in Programming
今こそ押さえておきたい アマゾンウェブサービス(AWS)の データベースの基礎 おもクラ #6版
satoshi256kbyte
1
240
Xdebug と IDE による デバッグ実行の仕組みを見る / Exploring-How-Debugging-Works-with-Xdebug-and-an-IDE
shin1x1
0
380
AI時代のエンジニアリングの原則 / Engineering Principles in the AI Era
haru860
0
270
forteeの改修から振り返るPHPerKaigi 2026
muno92
PRO
3
290
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
3
330
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
0
150
年間50登壇、単著出版、雑誌寄稿、Podcast出演、YouTube、CM、カンファレンス主催……全部やってみたので面白さ等を比較してみよう / I’ve tried them all, so let’s compare how interesting they are.
nrslib
4
780
AIエージェントで業務改善してみた
taku271
0
520
Make GenAI Production-Ready with Kubernetes Patterns
bibryam
0
120
LM Linkで(非力な!)ノートPCでローカルLLM
seosoft
0
490
YJITとZJITにはイカなる違いがあるのか?
nakiym
0
220
Google Nest CamとApple Vision frameworkと猫🐈🐈⬛ / onishi50
yutailang0119
0
110
Featured
See All Featured
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
450
Prompt Engineering for Job Search
mfonobong
0
270
エンジニアに許された特別な時間の終わり
watany
106
240k
The World Runs on Bad Software
bkeepers
PRO
72
12k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
64
53k
It's Worth the Effort
3n
188
29k
Raft: Consensus for Rubyists
vanstee
141
7.4k
Embracing the Ebb and Flow
colly
88
5k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.3k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
43k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Ethics towards AI in product and experience design
skipperchong
2
260
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: