# views.py
from django.template.loader import render_to_string
from django.http import HttpResponse
def index(request):
template_str =render_to_string(
'email.html',
context=job_info
)
return HttpReponse(template_str )

# email.html
Job:[{{job_id}}] {{job_name}} {{status}}

-------------------------------------------

个性签名:代码过万,键盘敲烂!!!

如果觉得这篇文章对你有小小的帮助的话,记得在右下角点个“推荐”哦,博主在此感谢!