def forge(category, post, comment): from fakes import fake_admin, fake_categories, fake_posts, fake_comments db.drop_all() db.create_all() click.echo('Generating the administrator...') fake_admin() click.echo('Generating %d categories...' % category) fake_categories(category) click.echo('Generating %d posts...' % post) fake_posts(post) click.echo('Generating %d comments' % comment) fake_comments(comment) click.echo('Done.')
def forge(category, post, comment): db.drop_all() db.create_all() print('Generating the administrator...') fake_admin() print('Generating %d categories...' % category) fake_categories(category) print('Generating %d posts...' % post) fake_posts(post) print('Generating %d comments...' % comment) fake_comments(comment) print('Generating links...') #fake_links() print('Done.')