def install(): logging.error(">> installing post") params = { "name":"Hello world!", "slug":"hello-world", "plain_description":"Welcome to ContentQ CMS. This is your first post. Edit or delete it, then start blogging!", "description":"Welcome to ContentQ CMS. This is your first post. Edit or delete it, then start blogging!", "status":"published", "tags":[], "meta_desc":"hello world", "category":"uncategorized", "body":"<p>this is an example content</p>" } post_ref = PostItem(**params) post_ref.put() category_ref = PostCategory(name='Uncategorized', slug='uncategorized') category_ref.put() latestpost_ref = Block.add_model('latestpost', 'blog.blocks.LatestPostBlock') postcategories_ref = Block.add_model('postcategories', 'blog.blocks.PostCategoriesBlock') block = Block(name='Post Categories', slug='post-categories', position='rightsidebar', model='blog.blocks.PostCategoriesBlock', args={}) block.save()