瀏覽代碼

# feat:文章详情视图处理函数返回增加创建时间字段返回

yang yi 1 周之前
父節點
當前提交
c6005ed528
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pythonweb/common/views.py

+ 1 - 0
pythonweb/common/views.py

@@ -11,5 +11,6 @@ def article(request,id):
     context = {
         'title':art.title,
         'content':markdown.markdown(art.markdown_content),
+        'created_at':art.created_at,
     }
     return render(request, 'article.html',context)