django 模板輸出

導入

from django.shortcuts import render_to_response

 

如果模板有多級目錄請搜索模板

   

get_template()中使用子目錄

  

t = get_template('dateapp/current_datetime.html')
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章