确定点击下去没反应,后台错误代码
[19/Dec/2019 14:15:10] "GET /api/questions?csrfmiddlewaretoken=wpG6JHHs1VHUhyORc3HXAR4uVmIKiEpZ5TxJep61Qkgb3bh0VoJtaQV24nqQofi8&uid=mQhx8jm7qa5o7k9pGQwtHC&kind_id=6JEaBQKzesDHt7osh4x3t9 HTTP/1.1" 200 2302
Internal Server Error: /api/answer
Traceback (most recent call last):
File "C:\Users\54212\.virtualenvs\Exam\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
response = get_response(request)
File "C:\Users\54212\.virtualenvs\Exam\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
response = self.process_exception_by_middleware(e, request)
File "C:\Users\54212\.virtualenvs\Exam\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Users\54212\.virtualenvs\Exam\lib\site-packages\django\views\decorators\csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "C:\Users\54212\test\Exam\utils\decorators.py", line 29, in wrapper
return func(request, *args, **kwargs)
File "C:\Users\54212\test\Exam\utils\decorators.py", line 59, in wrapper
return func(request, *args, **kwargs)
File "C:\Users\54212\AppData\Local\Programs\Python\Python37\lib\contextlib.py", line 74, in inner
return func(*args, **kwds)
File "C:\Users\54212\test\Exam\competition\game_views.py", line 108, in submit_answer
total, correct, wrong = check_correct_num(answer) # 检查答题情况
ValueError: too many values to unpack (expected 3)
[19/Dec/2019 14:15:12] "POST /api/answer HTTP/1.1" 500 17937
Performing system checks...