Django個人博客搭建5-編寫文章詳情頁面並支持markdown語法

1. 編寫視圖函數 打開article/views.py增加文章詳情頁函數article_detail(): # 文章詳情 def article_detail(request, id): article = ArticlePost.objects.get(id=id) context = {'article': article} # 載入模板,並返回context對象 r
相關文章
相關標籤/搜索