1. 程式人生 > >python django day 3

python django day 3

zqxt_views/urls.py
path('', calc_views.index, name='home'),

calc/views.py
def index(request):
return render(request, 'home.html')

calc/templates/home.html
<!DOCTYPE html>
<html>
<head>
<title>自強學堂</title>
</head>
<body>

<a href="/add/4/5/">計算 4+5</a>

</body>
</html>