访问:http://127.0.0.1:8000/index/class 异常:RuntimeError: You called this URL via POST, but the URL doesn’t end in a slash and you have A..... 解决: 在url上最后加上/ http://127.0.0.1:8000/index/class/