This is a demo on how to run different Python-based web frameworks on the same domain and port using the WSGI dispatcher. This code uses Python 3.5+.
python hello_flask_and_pyramid_and_django.py
Then go to http://127.0.0.1:4000/.
The minimum "hello world" for Django 1.4. Views only, no code having anything to do with model/database/etc.
Assumes Django 1.4+ is installed (pip install django
or easy_install django
).
See "Notes" section below.
python manage.py runserver
Then go to http://127.0.0.1:4000/.
python hello_pyramid.py
Then go to http://127.0.0.1:4000/.
python hello_flask.py
Then go to http://127.0.0.1:4000/.