(update)
Creates a local blog
Creates a local blog
Creates a local blog
def init_local(update):
    """
    Creates a local blog
    """
    blog, created = Blog.objects.get_or_create(title="Local blog", remote=False)
    for step in range(update):
        logger.info("adding local blog post")
        BlogPost.objects.create(blog=blog, title='Local blog post', content="Lorem ipsum", creation_date=now())
def init_local ( update ) : blog , created = Blog . objects . get_or_create ( title = "Local blog" , remote = False ) for step in range ( update ) : logger . info ( "adding local blog post" ) BlogPost . objects . create ( blog = blog , title = 'Local blog post' , content = "Lorem ipsum" , creation_date = now ( ) )