Django 运行post请求时发生异常

访问:http://127.0.0.1:8000/index/class

Django 运行post请求时发生异常_第1张图片

异常: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/

你可能感兴趣的:(Django,python)