Installing Python Flask Framework


Flask is the one of the most popular micro Frame work which enable programmers to quickly build web applications. Linkedin, Pinterest are some of the finest example of this framework. The Frame work was initially coded by Armin Ronacher of Pocoo. Lets start with Installation

Install Flask

First up all you need to install python on your system, if you done’t have get one from www.python.org 
You can install Flask from Python Package Index which require the PIP command and a internet connection. Learn how to get PIP?
Install flask using the following command line, the simplest way to install Flask on your system.
On Windows go to your command prompt/shell and issue the pip command.
D:/> pip install flask
It will take some time to finish the procedures.

Uninstalling Flask

D:/> pip install flask
will remove Flask packages from your system

Create your first App

Flask is Fun

Create a file called hello.py
from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
return "Hello World!"

if __name__ == "__main__":
app.run()

And Easy to Setup

C:/> pip install Flask
c:/> python hello.py
* Running on http://localhost:5000/
Learn more about Flask

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.