How to Flask with Python : Making of a Flask website

Flask is the one of the most popular Micro Framework which enables programmers to quickly build web applications. Linkedin, Pinterest are some of the finest examples of this framework. The Framework was initially coded by Armin Ronacher of Pocoo. Let's start with Installation

Install Flask

First up all you need to install Python on your system if you don't have to get one from www.python.org.
You can install Flask from Python Package Index which requires the PIP command and an 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

Comments

  1. Thank a lot for this post that was very interesting. Keep posting like those amazing posts, this is really awesome :) Thank you for sharing wonderful information with us to get some idea about that content.
    oracle training in chennai

    oracle training institute in chennai

    oracle training in bangalore

    oracle training in hyderabad

    oracle training

    oracle online training

    hadoop training in chennai

    hadoop training in bangalore

    ReplyDelete

Post a Comment

Popular posts from this blog

OLEDB Database connection string in C#.Net

How to get Computer Name using VB6 Code

SqlAlchemy[SQLite] database connection in Python-Flask