def create_tables(): from models import User, Message, Note, Relationship, City, Pinche # User.create_table() Relationship.create_table() Note.create_table() Message.create_table() City.create_table() Pinche.create_table()
from app import app from models import City import views if __name__ == '__main__': City.create_table(True) app.run()