Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Pycon SG
Search
Akshar Raaj
June 22, 2015
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
94
Other Decks in Programming
See All in Programming
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
JIS keyboard support in Omarchy
lef237
0
110
AmebaブログはKMPから卒業します
kmars0605
0
180
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
すこし踏み込む CancellationToken
htkym
2
1.7k
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
1
430
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
610
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
270
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
140
Featured
See All Featured
Thoughts on Productivity
jonyablonski
76
5.4k
Automating Front-end Workflow
addyosmani
1369
210k
How to train your dragon (web standard)
notwaldorf
96
6.9k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The agentic SEO stack - context over prompts
schlessera
0
970
A Tale of Four Properties
chriscoyier
163
24k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
How GitHub (no longer) Works
holman
316
150k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
630
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.4k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
320
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: