Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Building a Web Server with Python and Flask Tutorial - Parts 1 & 2

DZone's Guide to

Building a Web Server with Python and Flask Tutorial - Parts 1 & 2

· Web Dev Zone ·
Free Resource

Deploy code to production now. Release to users when ready. Learn how to separate code deployment from user-facing feature releases with LaunchDarkly.

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!

Software required:
* 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

Deploy code to production now. Release to users when ready. Learn how to separate code deployment from user-facing feature releases with LaunchDarkly.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}