[ERROR][2022-03-28 10:42:42,580][log.py:230]Internal Server Error: /actual/actual_out_apply_distribution_final Traceback (most recent call last): ? File "/home/vm01/.local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner ? ? response = get_response(request) ? File "/home/vm01/.local/lib/python3.6/site-packages/django/utils/deprecation.py", line 113, in __call__ ? ? response = self.process_request(request) ? File "/home/vm01/.local/lib/python3.6/site-packages/django/middleware/common.py", line 54, in process_request ? ? path = self.get_full_path_with_slash(request) ? File "/home/vm01/.local/lib/python3.6/site-packages/django/middleware/common.py", line 94, 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 192.168.43.220/actual/actual_out_apply_distribution_final/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
解决方法:url路径以斜杠结尾
|