SlideShare a Scribd company logo
1 of 11
Download to read offline
SUSAN TAN
CISCO IN SAN FRANCISCO
TWITTER: @ARCTANSUSAN
HOW DO I RUN MULTIPLE PYTHON APPS
IN 1 COMMAND LINE UNDER 1 WSGI?
THIS IS A HELLO WORLD FLASK APP
from flask import Flask, request
app = Flask(__name__)
@app.route('/<name>')
def hello_world(name):
return "Hello %s, I'm a flask app!" % (name)
if __name__ == '__main__':
app.debug = True
app.run()
THIS IS A HELLO WORLD DJANGO APP
from django.http import HttpResponse
def hello(request, name):
return HttpResponse("<p>Hello, %s I'm a Django app.</p>" % (name,))
views.py
from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^(?P<name>[-w]+)/$', 'hello_django.mysite.myapp.views.hello'),
)
urls.py
Django app runs at http://127.0.0.1:8000/
Flask app runs at http://127.0.0.1:5000/
An Observation
HOW DO I COMBINE BOTH PYTHON APPS?
SO THEY’RE BOTH ON SAME PORT? SAME COMMAND LINE ?
WSGI DISPATCHER
Source: Reference: http://flask.pocoo.org/docs/0.10/patterns/appdispatch/
CONFIGURE WSGI.PY IN DJANGO APP
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE",
"hello_django.mysite.myapp.settings")
# This application object is used by any WSGI server
configured to use this
# file. This includes Django's development server, if
the WSGI_APPLICATION
# setting points here.
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
wsgi.py
THIS IS A HELLO WORLD COMBINED FLASK & DJANGO APP
from werkzeug.serving import run_simple
from werkzeug.wsgi import DispatcherMiddleware
import hello_flask
from hello_django.mysite.myapp import wsgi as hello_django
application = DispatcherMiddleware(hello_flask.app, {
'/django': hello_django.application
})
if __name__ == '__main__':
run_simple('localhost', 4000, application,
use_reloader=True, use_debugger=True, use_evalex=True)
combined_apps.py
Let’s run more python web frameworks in 1
command line
LIVE DEMO TIME
Source Code?
https://github.com/ArcTanSusan/wsgi_lightnng_talk
Reference: http://flask.pocoo.org/docs/0.10/patterns/
appdispatch/
Slides? On slideshare. I tweeted them already.
Contact Info
Susan Tan
Twitter: @ArcTanSusan

More Related Content

What's hot (12)

Yurii Bodarev - OTP, Phoenix & Ecto: Three Pillars of Elixir
Yurii Bodarev - OTP, Phoenix & Ecto: Three Pillars of ElixirYurii Bodarev - OTP, Phoenix & Ecto: Three Pillars of Elixir
Yurii Bodarev - OTP, Phoenix & Ecto: Three Pillars of Elixir
 
Introduction to lua
Introduction to luaIntroduction to lua
Introduction to lua
 
PHP Programming: Intro
PHP Programming: IntroPHP Programming: Intro
PHP Programming: Intro
 
23.simple login with sessions in laravel 5
23.simple login with sessions in laravel 523.simple login with sessions in laravel 5
23.simple login with sessions in laravel 5
 
Harrigan_Danielle_Programming
Harrigan_Danielle_ProgrammingHarrigan_Danielle_Programming
Harrigan_Danielle_Programming
 
Scratching the surface of hunky-dory Elixir features
Scratching the surface of hunky-dory Elixir featuresScratching the surface of hunky-dory Elixir features
Scratching the surface of hunky-dory Elixir features
 
次世代PHPフレームワーク Symfony2
次世代PHPフレームワーク Symfony2次世代PHPフレームワーク Symfony2
次世代PHPフレームワーク Symfony2
 
UTAU DLL voicebank and ulauncher
UTAU DLL voicebank and ulauncherUTAU DLL voicebank and ulauncher
UTAU DLL voicebank and ulauncher
 
PHP and Databases
PHP and DatabasesPHP and Databases
PHP and Databases
 
You promise?
You promise?You promise?
You promise?
 
[Erlang LT] Regexp Perl And Port
[Erlang LT] Regexp Perl And Port[Erlang LT] Regexp Perl And Port
[Erlang LT] Regexp Perl And Port
 
Winefontssmoothing en
Winefontssmoothing enWinefontssmoothing en
Winefontssmoothing en
 

Viewers also liked

Uso del internet
Uso del internetUso del internet
Uso del internet
monicopana
 
MoM2010: Steps to Patent Your Ideas
MoM2010: Steps to Patent Your IdeasMoM2010: Steps to Patent Your Ideas
MoM2010: Steps to Patent Your Ideas
Hend Al-Khalifa
 
Driver based planning
Driver based planningDriver based planning
Driver based planning
jarobertson2
 

Viewers also liked (16)

Garcia reyna luis angel
Garcia reyna luis angelGarcia reyna luis angel
Garcia reyna luis angel
 
Uso del internet
Uso del internetUso del internet
Uso del internet
 
다이어트내비App 기획안
다이어트내비App 기획안다이어트내비App 기획안
다이어트내비App 기획안
 
Algas azuis
Algas azuisAlgas azuis
Algas azuis
 
1rst ARCADIA project newsletter
1rst ARCADIA project newsletter1rst ARCADIA project newsletter
1rst ARCADIA project newsletter
 
Rfid tech for library | تحديد الهوية بموجات الراديو
Rfid tech for library | تحديد الهوية بموجات الراديوRfid tech for library | تحديد الهوية بموجات الراديو
Rfid tech for library | تحديد الهوية بموجات الراديو
 
عرض الفصل 7 و8و9
عرض الفصل 7 و8و9عرض الفصل 7 و8و9
عرض الفصل 7 و8و9
 
MoM2010: Steps to Patent Your Ideas
MoM2010: Steps to Patent Your IdeasMoM2010: Steps to Patent Your Ideas
MoM2010: Steps to Patent Your Ideas
 
Commibr4 الاتصال الفعال
Commibr4 الاتصال الفعالCommibr4 الاتصال الفعال
Commibr4 الاتصال الفعال
 
Consumption Smoothing and Productive Investments in Rural Zambia
Consumption Smoothing and Productive Investments in Rural ZambiaConsumption Smoothing and Productive Investments in Rural Zambia
Consumption Smoothing and Productive Investments in Rural Zambia
 
Protozoários sarcodina
Protozoários   sarcodinaProtozoários   sarcodina
Protozoários sarcodina
 
Driver based planning
Driver based planningDriver based planning
Driver based planning
 
محاضرتي الثانية
محاضرتي الثانيةمحاضرتي الثانية
محاضرتي الثانية
 
Patient safety culture
Patient safety culturePatient safety culture
Patient safety culture
 
ضبط الجودة النوعية فى المختبرات الطبية
ضبط الجودة النوعية فى المختبرات الطبيةضبط الجودة النوعية فى المختبرات الطبية
ضبط الجودة النوعية فى المختبرات الطبية
 
الجمعية الصحية الصومالية في الكويت
الجمعية الصحية الصومالية في الكويتالجمعية الصحية الصومالية في الكويت
الجمعية الصحية الصومالية في الكويت
 

Similar to How do I run multiple python apps in 1 command line under 1 WSGI app?

Flask patterns
Flask patternsFlask patterns
Flask patterns
it-people
 

Similar to How do I run multiple python apps in 1 command line under 1 WSGI app? (20)

Flask - Backend com Python - Semcomp 18
Flask - Backend com Python - Semcomp 18Flask - Backend com Python - Semcomp 18
Flask - Backend com Python - Semcomp 18
 
Kyiv.py #17 Flask talk
Kyiv.py #17 Flask talkKyiv.py #17 Flask talk
Kyiv.py #17 Flask talk
 
Flask-RESTPlusで便利なREST API開発 | Productive RESTful API development with Flask-...
Flask-RESTPlusで便利なREST API開発 | Productive RESTful API development with Flask-...Flask-RESTPlusで便利なREST API開発 | Productive RESTful API development with Flask-...
Flask-RESTPlusで便利なREST API開発 | Productive RESTful API development with Flask-...
 
Flask & Flask-restx
Flask & Flask-restxFlask & Flask-restx
Flask & Flask-restx
 
Flask patterns
Flask patternsFlask patterns
Flask patterns
 
Flask restfulservices
Flask restfulservicesFlask restfulservices
Flask restfulservices
 
Python para web - Utilizando micro-framework Flask - PUG-MA
Python para web - Utilizando micro-framework Flask - PUG-MAPython para web - Utilizando micro-framework Flask - PUG-MA
Python para web - Utilizando micro-framework Flask - PUG-MA
 
Python Flask Tutorial For Beginners | Flask Web Development Tutorial | Python...
Python Flask Tutorial For Beginners | Flask Web Development Tutorial | Python...Python Flask Tutorial For Beginners | Flask Web Development Tutorial | Python...
Python Flask Tutorial For Beginners | Flask Web Development Tutorial | Python...
 
Micropage in microtime using microframework
Micropage in microtime using microframeworkMicropage in microtime using microframework
Micropage in microtime using microframework
 
Developing Flask Extensions
Developing Flask ExtensionsDeveloping Flask Extensions
Developing Flask Extensions
 
Flask Basics
Flask BasicsFlask Basics
Flask Basics
 
Symfony components in the wild, PHPNW12
Symfony components in the wild, PHPNW12Symfony components in the wild, PHPNW12
Symfony components in the wild, PHPNW12
 
The 2016 Android Developer Toolbox [NANTES]
The 2016 Android Developer Toolbox [NANTES]The 2016 Android Developer Toolbox [NANTES]
The 2016 Android Developer Toolbox [NANTES]
 
DrupalCon jQuery
DrupalCon jQueryDrupalCon jQuery
DrupalCon jQuery
 
LvivPy - Flask in details
LvivPy - Flask in detailsLvivPy - Flask in details
LvivPy - Flask in details
 
The 2016 Android Developer Toolbox [MOBILIZATION]
The 2016 Android Developer Toolbox [MOBILIZATION]The 2016 Android Developer Toolbox [MOBILIZATION]
The 2016 Android Developer Toolbox [MOBILIZATION]
 
Quality Use Of Plugin
Quality Use Of PluginQuality Use Of Plugin
Quality Use Of Plugin
 
Mojolicious. Веб в коробке!
Mojolicious. Веб в коробке!Mojolicious. Веб в коробке!
Mojolicious. Веб в коробке!
 
Practical Celery
Practical CeleryPractical Celery
Practical Celery
 
ReactPHP
ReactPHPReactPHP
ReactPHP
 

More from Susan Tan

More from Susan Tan (7)

Rants and Ruminations From A Job Applicant After 💯 CS Job Interviews in Silic...
Rants and Ruminations From A Job Applicant After 💯 CS Job Interviews in Silic...Rants and Ruminations From A Job Applicant After 💯 CS Job Interviews in Silic...
Rants and Ruminations From A Job Applicant After 💯 CS Job Interviews in Silic...
 
Let's read code: python-requests library
Let's read code: python-requests libraryLet's read code: python-requests library
Let's read code: python-requests library
 
How to Upgrade to the Newest Shiniest Django Version
How to Upgrade to the Newest Shiniest Django VersionHow to Upgrade to the Newest Shiniest Django Version
How to Upgrade to the Newest Shiniest Django Version
 
Let's read code: the python-requests library
Let's read code: the python-requests libraryLet's read code: the python-requests library
Let's read code: the python-requests library
 
How to Really Get Git
How to Really Get GitHow to Really Get Git
How to Really Get Git
 
Python In The Browser: Intro to Brython
Python In The Browser: Intro to BrythonPython In The Browser: Intro to Brython
Python In The Browser: Intro to Brython
 
How to choose an open-source project
How to choose an open-source projectHow to choose an open-source project
How to choose an open-source project
 

Recently uploaded

VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
ydyuyu
 
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
 
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Chandigarh Call girls 9053900678 Call girls in Chandigarh
 
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
nirzagarg
 

Recently uploaded (20)

VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
 
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
 
Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...
Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...
Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
 
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
 
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
 
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort ServiceBusty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
Microsoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftMicrosoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck Microsoft
 
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
 
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
 
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
 

How do I run multiple python apps in 1 command line under 1 WSGI app?

  • 1. SUSAN TAN CISCO IN SAN FRANCISCO TWITTER: @ARCTANSUSAN HOW DO I RUN MULTIPLE PYTHON APPS IN 1 COMMAND LINE UNDER 1 WSGI?
  • 2. THIS IS A HELLO WORLD FLASK APP from flask import Flask, request app = Flask(__name__) @app.route('/<name>') def hello_world(name): return "Hello %s, I'm a flask app!" % (name) if __name__ == '__main__': app.debug = True app.run()
  • 3. THIS IS A HELLO WORLD DJANGO APP from django.http import HttpResponse def hello(request, name): return HttpResponse("<p>Hello, %s I'm a Django app.</p>" % (name,)) views.py from django.conf.urls import patterns, include, url urlpatterns = patterns('', url(r'^(?P<name>[-w]+)/$', 'hello_django.mysite.myapp.views.hello'), ) urls.py
  • 4. Django app runs at http://127.0.0.1:8000/ Flask app runs at http://127.0.0.1:5000/ An Observation HOW DO I COMBINE BOTH PYTHON APPS? SO THEY’RE BOTH ON SAME PORT? SAME COMMAND LINE ?
  • 7. CONFIGURE WSGI.PY IN DJANGO APP import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hello_django.mysite.myapp.settings") # This application object is used by any WSGI server configured to use this # file. This includes Django's development server, if the WSGI_APPLICATION # setting points here. from django.core.wsgi import get_wsgi_application application = get_wsgi_application() wsgi.py
  • 8. THIS IS A HELLO WORLD COMBINED FLASK & DJANGO APP from werkzeug.serving import run_simple from werkzeug.wsgi import DispatcherMiddleware import hello_flask from hello_django.mysite.myapp import wsgi as hello_django application = DispatcherMiddleware(hello_flask.app, { '/django': hello_django.application }) if __name__ == '__main__': run_simple('localhost', 4000, application, use_reloader=True, use_debugger=True, use_evalex=True) combined_apps.py
  • 9.
  • 10. Let’s run more python web frameworks in 1 command line LIVE DEMO TIME