模板
for循环
{% for athlete in athlete_list %}
<li>{{ athlete.name }}</li>
{% endfor %}
if语句
{% if condition1 %}
... display 1
{% elif condiiton2 %}
... display 2
{% else %}
... display 3
{% endif %}
三种返回方式
from django.shortcuts import render, redirect, HttpResponse
# return HttpResponse("字符串")
# return render(request, "HTML模板的路径")
# return redirect('/只能填URL')