Skip to content

Instantly share code, notes, and snippets.

@emaldonadot
Last active October 2, 2019 19:11
Show Gist options
  • Save emaldonadot/22c4a18b47db32b487efb044033de233 to your computer and use it in GitHub Desktop.
Save emaldonadot/22c4a18b47db32b487efb044033de233 to your computer and use it in GitHub Desktop.
Flask Cheatsheet

Flask Cheatsheet

Most basic application

from flask import Flask

app = Flask(__name__)

@app.route('/')
def home():
  return 'Hello World'

if __name__:
  app.run(debug=True, port=8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment