Untitled diff

Created Diff never expires
3 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
9 lines
11 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
17 lines
from flask import Flask
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
app = Flask(__name__)
@app.route("/")
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///people.db'
def hello():
db = SQLAlchemy(app)
return "Hello World!"
class Person(db.Model):
id = db.Column(db.Integer, primary_key=True)
first_name = db.Column(db.Text)
last_name = db.Column(db.Text)
db.create_all()
if __name__ == "__main__":
if __name__ == "__main__":
app.run()
app.run()