导入
from django.shortcuts import render_to_response
如果模板有多级目录请搜索模板
get_template()中使用子目录
t = get_template('dateapp/current_datetime.html')
导入
from django.shortcuts import render_to_response
如果模板有多级目录请搜索模板
t = get_template('dateapp/current_datetime.html')