Hello World in Flask [Appropriate memo]

First Trip Note dealing with Flask

pip install Flask

Python code

from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello():
    return "Hello, World!"
@app.route('/test')
def hello2():
    return "Hello, TEST!"

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

Recommended Posts

Hello World in Flask [Appropriate memo]
Hello world with flask
Hello World with Flask + Hamlish
Programming language in "Hello World"
Hello World in GO language
Let's do "Hello World" in 40 languages! !!
Flask memo
cout << "Hello, World! \ N" in python
Code: 2 "Hello World" in "Choregraphe-Python script"
Hello world
Python beginners tried Hello World in 30 seconds using the micro-framework Flask
Hello world instead of localhost in Django
Flask tutorial (from installation to hello world)
Image sending / receiving memo in Python (Flask)
How to display Hello world in python
Pymacs hello world
Flask Primer Memo
Flask basic memo
cython hello world
Hello World with gRPC / go in Docker environment
Flask Hello World cannot be displayed on VPS
hello world with ctypes
RabbitMQ Tutorial 1 ("Hello World!")
Hello, World with Docker
Hello World on Django
Django's first Hello World
Work memo that I tried i18n with Flask app
Image uploader in Flask
Flask introduction-Blueprint application memo
Display "Hello World" created in the local environment on the web
Hello World in various languages [Python / PHP / Java / Perl / Ruby]
Until Hello World with Flask + uWSGI + Nginx @ Sakura's VPS (CentOS 6.6)
Draw hello world with mod_wsgi
HTTP environment variables in Flask
Image addition memo in reportlab
Simply check Content-Type in Flask (@content_type)
Celery asynchronous processing in Flask
Hello World (beginners) on Django
Python starting with Hello world!
Upload multiple files in Flask
Getting Started with Heroku-Viewing Hello World in Python Django with Raspberry PI 3
Hit the echo command in the Mac terminal to output Hello World