コード例 #1
0
ファイル: app.py プロジェクト: 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()
コード例 #2
0
ファイル: app.py プロジェクト: jade-bot/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()
コード例 #3
0
ファイル: views.py プロジェクト: lite/pinche
def pinche_list():
    obj_list = Pinche.select().order_by('pub_date')
    return object_list('pinche_list.html', obj_list, "obj_list")
コード例 #4
0
ファイル: views.py プロジェクト: lite/pinche
def city_detail(city_id):
    city = get_object_or_404(City, id=city_id)
    obj_list = Pinche.select().where(city=city).order_by('pub_date')
    return object_list('city_detail.html', obj_list, "obj_list")
コード例 #5
0
ファイル: views.py プロジェクト: jade-bot/pinche
def pinche_list():
    obj_list = Pinche.select().order_by('pub_date')
    return object_list('pinche_list.html', obj_list, "obj_list")
コード例 #6
0
ファイル: views.py プロジェクト: jade-bot/pinche
def city_detail(city_id):
    city = get_object_or_404(City, id=city_id)
    obj_list = Pinche.select().where(city=city).order_by('pub_date')
    return object_list('city_detail.html', obj_list, "obj_list")