已有184人关注
麻烦老师解答一下
发表在Python图书答疑 2019-12-19 悬赏:30 学分 《Python项目开发案例集锦》第20章 智慧校园考试系统
是否精华
版块置顶:

QQ图片20191219141952.png

确定点击下去没反应,后台错误代码

[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...


分享到:
精彩评论 1
andy
学分:2118 LV10
TA的每日心情
继续努力
2017-02-06 23:42:34
2019-12-19
沙发

读者你好:

    请更新一下代码:https://github.com/fengchunlong/exam ,

image.png

首页上一页 1 下一页尾页 1 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照