article.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:Doodle 作者: keakon 项目源码 文件源码
def get(self, article_id):
        article_id = int(article_id)
        if not article_id:
            raise HTTPError(404)

        article = Article.get_by_id(article_id)
        if not article:
            raise HTTPError(404)

        categories = Category.get_all_names_with_paths()
        tags = Tag.get_all()

        self.render('admin/edit_article.html', {
            'title': u'???%s?' % article.title,
            'page': 'edit_article',
            'article': article,
            'categories': categories,
            'tags': sorted(tags)
        })
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号