なぜかFlaskではなくSQLAlchemyではまる よくあるタグとエントリーの多対多のテーブル。 entry_tags = Table('entry_tags', Base.metadata, Column('entry_id', Integer, ForeignKey('entries.id')), Column('tag_id', Integer, ForeignKey('tags.id')) ) class Tag(Base): __tablename__ = 'tags' id = Column(Integer, primary_key=True) name = Column(String(128), unique=True) entries = relation("Entry", secondary=entry_tags) class Entry(Base): __tablen
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く