Ejemplo n.º 1
0
Archivo: app.py Proyecto: lite/pinche
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()
Ejemplo n.º 2
0
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()
Ejemplo n.º 3
0
from app import app
from models import City
import views

if __name__ == '__main__':
    City.create_table(True)
    app.run()