def test_markdownify(request):
post = Post.objects.last()
if post is not None:
context = {'post': post}
else:
context = {
'post': {
'title': 'Fake Post',
'description': """It **working**! :heart: [Python Learning](https://python.web.id)"""
}
}
return render(request, 'test_markdownify.html', context)
评论列表
文章目录