from peewee import * from playhouse.sqlite_ext import * db = SqliteExtDatabase('blog.db', threadlocals=True) class Entry(Model): title = CharField() content = TextField() # You may have any number of other fields, such as status, # timestamp, etc. class Meta: database = db class FTSEntry(FTSModel): entry = ForeignKeyField(Entry, primary_key=True) content = TextField() class Meta: database = db Entry.create_table() FTSEntry.create_table()
При выполнении строки
FTSEntry.create_table()
peewee.OperationalError: no such module: FTS4
ЗЫ. windows 7 64-bit, python 3.4.1 64-bit