在 app 中新建一个 templates 文件夹,在templates中新建一个 html文件(例:index.html )
内容如下:
<!DOCTYPE html>
<html>
<head>
<title>自强学堂</title>
</head>
<body>
<a href="/add/4/5/">计算 4+5</a>
</body>
</html>
启动服务,通过"http://127.0.0.1:8000/"访问时,报:django UnicodeDecodeError