flask hello world
Python hosting: Host, run, and code Python in the cloud!
In this tutorial you’ll learn how to build a web app with Python.
We’ll use a micro-framework called Flask. It has a small core but is extensible with many plugins such as SQLAlchemy, Babel, CouchDB, MongoDB etc.
Some Flask example apps are:
- flaskr — a microblog
- minitwit — a twitter clone
- flask website — static pages + mailinglist archives
Related course
Python Flask: Make Web Apps with Python
- easy to use.
- built in development server and debugger
- integrated unit testing support
- RESTful request dispatching
- uses Jinja2 templating
- support for secure cookies (client side sessions)
- 100% WSGI 1.0 compliant
- Unicode based
- extensively documented
Installing Flask
Install Flask using the command below:
pip install Flask |
Flask hello world app
Create a file called hello.py
|
Finally run the web app using this command:
$ python hello.py |
Open http://localhost:5000/ in your webbrowser, and “Hello World!” should appear.
Posted in flask
Leave a Reply:
what if flask will not install on python?
You can install Flask with pip, easy_install or another tool depending on your operating system.
can i ask any question frank?
sure, ask anything you want.