Skip to content

Instantly share code, notes, and snippets.

@kunxin-chor
Last active December 3, 2020 08:00
Show Gist options
  • Save kunxin-chor/d0cbcc7103a2e7c15abf4d40058bac65 to your computer and use it in GitHub Desktop.
Save kunxin-chor/d0cbcc7103a2e7c15abf4d40058bac65 to your computer and use it in GitHub Desktop.
Basic Flask App
from flask import Flask, render_template, request, redirect, url_for
import os
app = Flask(__name__)
# "magic code" -- boilerplate
if __name__ == '__main__':
app.run(host='localhost',
port=80,
debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment