Skip to content

Instantly share code, notes, and snippets.

Created March 11, 2016 23:34
Show Gist options
  • Save anonymous/9d7403a369bef4a57e2f to your computer and use it in GitHub Desktop.
Save anonymous/9d7403a369bef4a57e2f to your computer and use it in GitHub Desktop.
from flask import Flask
import models
db = models.db
db.connect()
app = Flask(__name__)
@app.route("/somepath")
def some_path():
return "Some number: %i " % len(db.select())
if __name__ == "__main__":
app.run(debug=True, host="0.0.0.0", port="8000")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment