Skip to content

Instantly share code, notes, and snippets.

@kunxin-chor
Created March 28, 2020 11:24
Show Gist options
  • Save kunxin-chor/701cab8d681196a1bd257f326920aeee to your computer and use it in GitHub Desktop.
Save kunxin-chor/701cab8d681196a1bd257f326920aeee to your computer and use it in GitHub Desktop.
Flask Template
from flask import Flask, render_template, request, redirect, url_for
import os
app = Flask(__name__)
# "magic code" -- boilerplate
if __name__ == '__main__':
app.run(host=os.environ.get('IP'),
port=int(os.environ.get('PORT')),
debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment