Over a million developers have joined DZone.

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

· Web Dev Zone

Start coding today to experience the powerful engine that drives data application’s development, brought to you in partnership with Qlik.

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

Create data driven applications in Qlik’s free and easy to use coding environment, brought to you in partnership with Qlik.


The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}