質問編集履歴
1
エラーログの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -204,6 +204,154 @@
|
|
204
204
|
|
205
205
|
|
206
206
|
|
207
|
+
```
|
208
|
+
|
209
|
+
Environment:
|
210
|
+
|
211
|
+
Request Method: POST
|
212
|
+
|
213
|
+
Request URL: http://127.0.0.1:8081/dj-rest-auth/login/
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
Django Version: 3.1.4
|
218
|
+
|
219
|
+
Python Version: 3.9.1
|
220
|
+
|
221
|
+
Installed Applications:
|
222
|
+
|
223
|
+
['django.contrib.admin',
|
224
|
+
|
225
|
+
'django.contrib.auth',
|
226
|
+
|
227
|
+
'django.contrib.contenttypes',
|
228
|
+
|
229
|
+
'django.contrib.sessions',
|
230
|
+
|
231
|
+
'django.contrib.messages',
|
232
|
+
|
233
|
+
'django.contrib.staticfiles',
|
234
|
+
|
235
|
+
'django.contrib.sites',
|
236
|
+
|
237
|
+
'rest_framework',
|
238
|
+
|
239
|
+
'rest_framework.authtoken',
|
240
|
+
|
241
|
+
'allauth',
|
242
|
+
|
243
|
+
'allauth.account',
|
244
|
+
|
245
|
+
'allauth.socialaccount',
|
246
|
+
|
247
|
+
'dj_rest_auth',
|
248
|
+
|
249
|
+
'dj_rest_auth.registration',
|
250
|
+
|
251
|
+
'users']
|
252
|
+
|
253
|
+
Installed Middleware:
|
254
|
+
|
255
|
+
['django.middleware.security.SecurityMiddleware',
|
256
|
+
|
257
|
+
'django.contrib.sessions.middleware.SessionMiddleware',
|
258
|
+
|
259
|
+
'django.middleware.common.CommonMiddleware',
|
260
|
+
|
261
|
+
'django.middleware.csrf.CsrfViewMiddleware',
|
262
|
+
|
263
|
+
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
264
|
+
|
265
|
+
'django.contrib.messages.middleware.MessageMiddleware',
|
266
|
+
|
267
|
+
'django.middleware.clickjacking.XFrameOptionsMiddleware']
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
Traceback (most recent call last):
|
272
|
+
|
273
|
+
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
|
274
|
+
|
275
|
+
response = get_response(request)
|
276
|
+
|
277
|
+
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 179, in _get_response
|
278
|
+
|
279
|
+
response = wrapped_callback(request, *callback_args, **callback_kwargs)
|
280
|
+
|
281
|
+
File "/usr/local/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
|
282
|
+
|
283
|
+
return view_func(*args, **kwargs)
|
284
|
+
|
285
|
+
File "/usr/local/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
|
286
|
+
|
287
|
+
return self.dispatch(request, *args, **kwargs)
|
288
|
+
|
289
|
+
File "/usr/local/lib/python3.9/site-packages/django/utils/decorators.py", line 43, in _wrapper
|
290
|
+
|
291
|
+
return bound_method(*args, **kwargs)
|
292
|
+
|
293
|
+
File "/usr/local/lib/python3.9/site-packages/django/views/decorators/debug.py", line 89, in sensitive_post_parameters_wrapper
|
294
|
+
|
295
|
+
return view(request, *args, **kwargs)
|
296
|
+
|
297
|
+
File "/usr/local/lib/python3.9/site-packages/dj_rest_auth/views.py", line 48, in dispatch
|
298
|
+
|
299
|
+
return super(LoginView, self).dispatch(*args, **kwargs)
|
300
|
+
|
301
|
+
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
|
302
|
+
|
303
|
+
response = self.handle_exception(exc)
|
304
|
+
|
305
|
+
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
|
306
|
+
|
307
|
+
self.raise_uncaught_exception(exc)
|
308
|
+
|
309
|
+
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
|
310
|
+
|
311
|
+
raise exc
|
312
|
+
|
313
|
+
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
|
314
|
+
|
315
|
+
response = handler(request, *args, **kwargs)
|
316
|
+
|
317
|
+
File "/usr/local/lib/python3.9/site-packages/dj_rest_auth/views.py", line 138, in post
|
318
|
+
|
319
|
+
self.serializer.is_valid(raise_exception=True)
|
320
|
+
|
321
|
+
File "/usr/local/lib/python3.9/site-packages/rest_framework/serializers.py", line 220, in is_valid
|
322
|
+
|
323
|
+
self._validated_data = self.run_validation(self.initial_data)
|
324
|
+
|
325
|
+
File "/usr/local/lib/python3.9/site-packages/rest_framework/serializers.py", line 422, in run_validation
|
326
|
+
|
327
|
+
value = self.validate(value)
|
328
|
+
|
329
|
+
File "/usr/local/lib/python3.9/site-packages/dj_rest_auth/serializers.py", line 131, in validate
|
330
|
+
|
331
|
+
self.validate_email_verification_status(user)
|
332
|
+
|
333
|
+
File "/usr/local/lib/python3.9/site-packages/dj_rest_auth/serializers.py", line 112, in validate_email_verification_status
|
334
|
+
|
335
|
+
email_address = user.emailaddress_set.get(email=user.email)
|
336
|
+
|
337
|
+
File "/usr/local/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
|
338
|
+
|
339
|
+
return getattr(self.get_queryset(), name)(*args, **kwargs)
|
340
|
+
|
341
|
+
File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 429, in get
|
342
|
+
|
343
|
+
raise self.model.DoesNotExist(
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
Exception Type: DoesNotExist at /dj-rest-auth/login/
|
348
|
+
|
349
|
+
Exception Value: EmailAddress matching query does not exist.
|
350
|
+
|
351
|
+
```
|
352
|
+
|
353
|
+
|
354
|
+
|
207
355
|
# 仮説
|
208
356
|
|
209
357
|
|