質問編集履歴

1

errorlog追加

2017/07/19 04:51

投稿

daidaidada
daidaidada

スコア13

test CHANGED
File without changes
test CHANGED
@@ -67,3 +67,77 @@
67
67
 
68
68
 
69
69
  ```
70
+
71
+ error log
72
+
73
+ ```
74
+
75
+ [19/Jul/2017 03:41:04] "GET /media/pic/pic_for_calib.JPG HTTP/1.1" 304 0
76
+
77
+ b'{"y":152.5,"x":183.5}'
78
+
79
+ Internal Server Error: /pic/
80
+
81
+ Traceback (most recent call last):
82
+
83
+ File "/Users/hoge/.virtualenvs/neochi/lib/python3.6/site-packages/django/utils/datastructures.py", line 83, in __getitem__
84
+
85
+ list_ = super(MultiValueDict, self).__getitem__(key)
86
+
87
+ KeyError: 'result'
88
+
89
+
90
+
91
+ During handling of the above exception, another exception occurred:
92
+
93
+
94
+
95
+ Traceback (most recent call last):
96
+
97
+ File "/Users/hoge.virtualenvs/neochi/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
98
+
99
+ response = get_response(request)
100
+
101
+ File "/Users/hoge/.virtualenvs/neochi/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
102
+
103
+ response = self.process_exception_by_middleware(e, request)
104
+
105
+ File "/Users/hoge/.virtualenvs/neochi/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
106
+
107
+ response = wrapped_callback(request, *callback_args, **callback_kwargs)
108
+
109
+ File "/Users/hoge/.virtualenvs/neochi/lib/python3.6/site-packages/django/views/generic/base.py", line 68, in view
110
+
111
+ return self.dispatch(request, *args, **kwargs)
112
+
113
+ File "/Users/hoge/.virtualenvs/neochi/lib/python3.6/site-packages/django/utils/decorators.py", line 67, in _wrapper
114
+
115
+ return bound_func(*args, **kwargs)
116
+
117
+ File "/Users/hoge/.virtualenvs/neochi/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
118
+
119
+ return view_func(*args, **kwargs)
120
+
121
+ File "/Users/hoge/.virtualenvs/neochi/lib/python3.6/site-packages/django/utils/decorators.py", line 63, in bound_func
122
+
123
+ return func.__get__(self, type(self))(*args2, **kwargs2)
124
+
125
+ File "/Users/hoge/neochi/neochi_web/calibrator/views.py", line 17, in dispatch
126
+
127
+ return super(PicView, self).dispatch(request, *args, **kwargs)
128
+
129
+ File "/Users/hoge/.virtualenvs/neochi/lib/python3.6/site-packages/django/views/generic/base.py", line 88, in dispatch
130
+
131
+ return handler(request, *args, **kwargs)
132
+
133
+ File "/Users/hoge/neochi/neochi_web/calibrator/views.py", line 42, in post
134
+
135
+ jsondata = request.POST['result']
136
+
137
+ File "/Users/hoge/.virtualenvs/neochi/lib/python3.6/site-packages/django/utils/datastructures.py", line 85, in __getitem__
138
+
139
+ raise MultiValueDictKeyError(repr(key))
140
+
141
+ django.utils.datastructures.MultiValueDictKeyError: "'result'"
142
+
143
+ ```