Building a Web Server with Python and Flask Tutorial - Parts 1 & 2
Join the DZone community and get the full member experience.Join For Free
calicoJake has put together some great tutorial videos for creating a web server using Python and Flask. Here are the first two videos in the series, first a Hello World introduction, and then a more in depth video where calicoJake creates a page that allows arbitrary executions of Python expressions.
Python/Flask Tutorial Part 1
This is the first video in a series to show how to create a web server using Python. If you like this video and want to see more, thumbs up, favorite, comment or subscribe. Thanks!
* Python 2.7 - http://www.python.org
* Flask - http://flask.pocoo.org/
Tools I use:
* Komodo edit
* Chrome browser
Final source: http://dl.dropbox.com/u/48898/youtube%20files/ep1/demo.py
Python/Flask Tutorial Part 2
In episode 2 of my series on creating a web server using Python and Flask I create a page which allows arbitrary execution of Python expressions. I start using Jinja2 templates instead of coding HTML directly in Python, and also use message flashing to send session data.
Let me know what you think in the comments. Like and subscribe if you want to see more!
Code for this episode: http://dl.dropbox.com/u/48898/youtube%20files/ep2/demo.zip
Web server Python (language) Flask (web framework)
Opinions expressed by DZone contributors are their own.