Пример #1
0
    def run(self):
        db.drop_all()
        db.create_all()
        self.create_pages()

        superuser = self.create_superuser()
        story = self.create_story(superuser)
        event = self.create_event(story, superuser)
        print event
Пример #2
0
 def run(self):
     db.drop_all()
     db.create_all()