Internal Server Error: /msn
Traceback (most recent call last):
File "D:\envs\zhusi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
response = get_response(request)
File "D:\envs\zhusi\lib\site-packages\django\utils\deprecation.py", line 93, in __call__
response = self.process_request(request)
File "D:\envs\zhusi\lib\site-packages\django\middleware\common.py", line 53, in process_request
path = self.get_full_path_with_slash(request)
File "D:\envs\zhusi\lib\site-packages\django\middleware\common.py", line 93, in get_full_path_with_slash
'url': request.get_host() + new_path,
RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to localhost:9000/msn/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
[10/Aug/2021 14:03:56] "POST /msn HTTP/1.1" 500 65714
Internal Server Error: /msn
最新推荐文章于 2023-08-21 16:23:08 发布