all-2022-10-06.log 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. [INFO] [2022-10-06 09:58:00,720] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  2. [INFO] [2022-10-06 09:59:00,305] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/urls.py changed, reloading.
  3. [INFO] [2022-10-06 09:59:00,523] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  4. [INFO] [2022-10-06 09:59:19,344] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/groupview.py changed, reloading.
  5. [INFO] [2022-10-06 09:59:19,565] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  6. [INFO] [2022-10-06 09:59:48,415] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/groupview.py changed, reloading.
  7. [INFO] [2022-10-06 09:59:48,626] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  8. [INFO] [2022-10-06 10:03:40,770] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/groupview.py changed, reloading.
  9. [INFO] [2022-10-06 10:03:41,037] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  10. [INFO] [2022-10-06 10:06:20,058] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  11. [INFO] [2022-10-06 10:06:20,371] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  12. [INFO] [2022-10-06 10:06:29,931] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  13. [INFO] [2022-10-06 10:06:30,222] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  14. [INFO] [2022-10-06 10:08:37,175] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  15. [INFO] [2022-10-06 10:08:37,486] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  16. [INFO] [2022-10-06 10:09:00,541] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  17. [INFO] [2022-10-06 10:09:00,839] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  18. [ERROR] [2022-10-06 10:09:06,754] [grouplistview.py:27] [grouplistview:post] - 组名已存在,请修改组名重新上传
  19. [ERROR] [2022-10-06 10:09:06,754] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/group/
  20. [ERROR] [2022-10-06 10:09:06,754] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/group/ HTTP/1.1" 500 45
  21. [INFO] [2022-10-06 10:09:12,044] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/group/ HTTP/1.1" 200 89
  22. [ERROR] [2022-10-06 10:10:42,937] [groupview.py:23] [groupview:post] - 组名不能位空
  23. [ERROR] [2022-10-06 10:10:42,937] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/group/TestLaboratory_V1_Group_2/edit
  24. [ERROR] [2022-10-06 10:10:42,938] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/group/TestLaboratory_V1_Group_2/edit HTTP/1.1" 500 18
  25. [INFO] [2022-10-06 10:11:06,159] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/group/TestLaboratory_V1_Group_2/edit HTTP/1.1" 200 15
  26. [INFO] [2022-10-06 10:12:17,548] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  27. [INFO] [2022-10-06 10:12:17,859] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  28. [INFO] [2022-10-06 10:13:48,708] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  29. [INFO] [2022-10-06 10:13:49,022] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  30. [INFO] [2022-10-06 10:13:55,459] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  31. [INFO] [2022-10-06 10:13:55,759] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  32. [INFO] [2022-10-06 10:14:06,244] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  33. [INFO] [2022-10-06 10:14:06,549] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  34. [INFO] [2022-10-06 10:18:13,179] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  35. [INFO] [2022-10-06 10:18:13,537] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  36. [INFO] [2022-10-06 10:18:32,426] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  37. [INFO] [2022-10-06 10:18:32,680] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  38. [INFO] [2022-10-06 10:18:57,639] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  39. [INFO] [2022-10-06 10:18:57,848] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  40. [INFO] [2022-10-06 10:19:20,517] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  41. [INFO] [2022-10-06 10:19:20,727] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  42. [INFO] [2022-10-06 10:19:39,545] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  43. [INFO] [2022-10-06 10:19:39,836] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  44. [INFO] [2022-10-06 10:20:18,982] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  45. [INFO] [2022-10-06 10:20:19,181] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  46. [INFO] [2022-10-06 10:22:16,913] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  47. [INFO] [2022-10-06 10:22:17,235] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  48. [INFO] [2022-10-06 10:22:29,959] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  49. [INFO] [2022-10-06 10:22:30,279] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  50. [INFO] [2022-10-06 10:26:47,918] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  51. [INFO] [2022-10-06 10:26:48,241] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  52. [INFO] [2022-10-06 10:27:35,080] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  53. [INFO] [2022-10-06 10:27:35,393] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  54. [INFO] [2022-10-06 10:28:22,060] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  55. [INFO] [2022-10-06 10:28:22,362] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  56. [INFO] [2022-10-06 10:28:29,764] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  57. [INFO] [2022-10-06 10:28:29,991] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  58. [INFO] [2022-10-06 10:28:50,781] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  59. [INFO] [2022-10-06 10:28:50,993] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  60. [INFO] [2022-10-06 10:30:47,323] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  61. [INFO] [2022-10-06 10:30:47,640] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  62. [ERROR] [2022-10-06 10:31:21,296] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/group/
  63. Traceback (most recent call last):
  64. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  65. response = get_response(request)
  66. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  67. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  68. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  69. return view_func(*args, **kwargs)
  70. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  71. return self.dispatch(request, *args, **kwargs)
  72. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  73. response = self.handle_exception(exc)
  74. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  75. self.raise_uncaught_exception(exc)
  76. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  77. raise exc
  78. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  79. response = handler(request, *args, **kwargs)
  80. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/middleware/rolecontrol.py", line 48, in __call__
  81. return self.func(request, *args, **kwargs)
  82. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py", line 64, in get
  83. for user in group.users:
  84. TypeError: 'ManyRelatedManager' object is not iterable
  85. [ERROR] [2022-10-06 10:31:21,297] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group/ HTTP/1.1" 500 100883
  86. [INFO] [2022-10-06 10:31:24,952] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group HTTP/1.1" 301 0
  87. [ERROR] [2022-10-06 10:31:24,995] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/group/
  88. Traceback (most recent call last):
  89. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  90. response = get_response(request)
  91. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  92. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  93. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  94. return view_func(*args, **kwargs)
  95. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  96. return self.dispatch(request, *args, **kwargs)
  97. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  98. response = self.handle_exception(exc)
  99. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  100. self.raise_uncaught_exception(exc)
  101. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  102. raise exc
  103. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  104. response = handler(request, *args, **kwargs)
  105. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/middleware/rolecontrol.py", line 48, in __call__
  106. return self.func(request, *args, **kwargs)
  107. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py", line 64, in get
  108. for user in group.users:
  109. TypeError: 'ManyRelatedManager' object is not iterable
  110. [ERROR] [2022-10-06 10:31:24,995] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group/ HTTP/1.1" 500 101039
  111. [INFO] [2022-10-06 10:32:58,128] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  112. [INFO] [2022-10-06 10:32:58,419] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  113. [INFO] [2022-10-06 10:33:01,938] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group HTTP/1.1" 301 0
  114. [ERROR] [2022-10-06 10:33:02,042] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/group/
  115. Traceback (most recent call last):
  116. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  117. response = get_response(request)
  118. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  119. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  120. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  121. return view_func(*args, **kwargs)
  122. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  123. return self.dispatch(request, *args, **kwargs)
  124. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  125. response = self.handle_exception(exc)
  126. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  127. self.raise_uncaught_exception(exc)
  128. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  129. raise exc
  130. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  131. response = handler(request, *args, **kwargs)
  132. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/middleware/rolecontrol.py", line 48, in __call__
  133. return self.func(request, *args, **kwargs)
  134. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py", line 65, in get
  135. for user in group.users:
  136. TypeError: 'ManyRelatedManager' object is not iterable
  137. [ERROR] [2022-10-06 10:33:02,043] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group/ HTTP/1.1" 500 101255
  138. [INFO] [2022-10-06 10:33:14,177] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  139. [INFO] [2022-10-06 10:33:14,401] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  140. [INFO] [2022-10-06 10:33:15,647] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group HTTP/1.1" 301 0
  141. [ERROR] [2022-10-06 10:33:15,726] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/group/
  142. Traceback (most recent call last):
  143. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  144. response = get_response(request)
  145. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  146. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  147. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  148. return view_func(*args, **kwargs)
  149. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  150. return self.dispatch(request, *args, **kwargs)
  151. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 511, in dispatch
  152. self.response = self.finalize_response(request, response, *args, **kwargs)
  153. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 423, in finalize_response
  154. assert isinstance(response, HttpResponseBase), (
  155. AssertionError: Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` to be returned from the view, but received a `<class 'NoneType'>`
  156. [ERROR] [2022-10-06 10:33:15,726] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group/ HTTP/1.1" 500 81482
  157. [INFO] [2022-10-06 10:33:42,316] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  158. [INFO] [2022-10-06 10:33:42,611] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  159. [INFO] [2022-10-06 10:33:45,799] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group HTTP/1.1" 301 0
  160. [INFO] [2022-10-06 10:33:45,843] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group/ HTTP/1.1" 200 209
  161. [INFO] [2022-10-06 10:41:55,738] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  162. [INFO] [2022-10-06 10:41:56,043] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  163. [INFO] [2022-10-06 10:45:53,626] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/groupview.py changed, reloading.
  164. [INFO] [2022-10-06 10:45:53,975] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  165. [INFO] [2022-10-06 10:47:25,424] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/groupview.py changed, reloading.
  166. [INFO] [2022-10-06 10:47:25,748] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  167. [INFO] [2022-10-06 10:47:43,544] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/groupview.py changed, reloading.
  168. [INFO] [2022-10-06 10:47:43,832] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  169. [INFO] [2022-10-06 10:50:15,710] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  170. [INFO] [2022-10-06 10:50:16,024] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  171. [WARNING] [2022-10-06 10:51:05,849] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/group/TestLaboratory_V1_Group_2
  172. [WARNING] [2022-10-06 10:51:05,873] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group/TestLaboratory_V1_Group_2 HTTP/1.1" 405 40
  173. [INFO] [2022-10-06 10:51:13,483] [basehttp.py:161] [basehttp:log_message] - "DELETE /api/v1/group/TestLaboratory_V1_Group_2 HTTP/1.1" 200 12
  174. [INFO] [2022-10-06 10:51:18,277] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group HTTP/1.1" 301 0
  175. [INFO] [2022-10-06 10:51:18,295] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group/ HTTP/1.1" 200 104
  176. [INFO] [2022-10-06 10:54:11,717] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group?code=762563 HTTP/1.1" 301 0
  177. [INFO] [2022-10-06 10:54:11,751] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group/?code=762563 HTTP/1.1" 200 104
  178. [INFO] [2022-10-06 10:54:13,380] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group?code=762563 HTTP/1.1" 301 0
  179. [INFO] [2022-10-06 10:54:13,403] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group/?code=762563 HTTP/1.1" 200 104
  180. [INFO] [2022-10-06 10:54:16,411] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group?code=76256 HTTP/1.1" 301 0
  181. [INFO] [2022-10-06 10:54:16,422] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group/?code=76256 HTTP/1.1" 200 2
  182. [INFO] [2022-10-06 10:54:19,944] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group?code=762563 HTTP/1.1" 301 0
  183. [INFO] [2022-10-06 10:54:19,966] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group/?code=762563 HTTP/1.1" 200 104
  184. [INFO] [2022-10-06 10:59:11,305] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/urls.py changed, reloading.
  185. [INFO] [2022-10-06 10:59:11,636] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  186. [INFO] [2022-10-06 10:59:39,798] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/urls.py changed, reloading.
  187. [INFO] [2022-10-06 10:59:40,088] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  188. [WARNING] [2022-10-06 11:00:58,926] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/TestLaboratory_V1_User_2/join
  189. [WARNING] [2022-10-06 11:00:58,927] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_2/join HTTP/1.1" 405 40
  190. [ERROR] [2022-10-06 11:01:02,832] [userjoinview.py:23] [userjoinview:post] - 分组不存在
  191. [ERROR] [2022-10-06 11:01:02,832] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_2/join
  192. [ERROR] [2022-10-06 11:01:02,833] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_2/join HTTP/1.1" 500 15
  193. [INFO] [2022-10-06 11:01:19,975] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_2/join HTTP/1.1" 200 12
  194. [INFO] [2022-10-06 11:02:18,984] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/urls.py changed, reloading.
  195. [INFO] [2022-10-06 11:02:19,337] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  196. [INFO] [2022-10-06 11:03:10,716] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/urls.py changed, reloading.
  197. [INFO] [2022-10-06 11:03:10,984] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  198. [ERROR] [2022-10-06 11:04:00,849] [userjoinview.py:23] [userjoinview:post] - 分组不存在
  199. [ERROR] [2022-10-06 11:04:00,850] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_2/join
  200. [ERROR] [2022-10-06 11:04:00,851] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_2/join HTTP/1.1" 500 15
  201. [INFO] [2022-10-06 11:04:15,014] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_2/quit HTTP/1.1" 200 12
  202. [INFO] [2022-10-06 11:06:24,370] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  203. [INFO] [2022-10-06 11:06:24,737] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  204. [INFO] [2022-10-06 11:06:37,390] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  205. [INFO] [2022-10-06 11:06:37,596] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  206. [INFO] [2022-10-06 11:07:18,652] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/ HTTP/1.1" 200 12
  207. [INFO] [2022-10-06 11:08:30,640] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 296
  208. [ERROR] [2022-10-06 11:08:49,679] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  209. Traceback (most recent call last):
  210. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  211. response = get_response(request)
  212. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  213. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  214. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  215. return view_func(*args, **kwargs)
  216. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  217. return self.dispatch(request, *args, **kwargs)
  218. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  219. response = self.handle_exception(exc)
  220. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  221. self.raise_uncaught_exception(exc)
  222. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  223. raise exc
  224. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  225. response = handler(request, *args, **kwargs)
  226. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/middleware/rolecontrol.py", line 48, in __call__
  227. return self.func(request, *args, **kwargs)
  228. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/views/userlistview.py", line 75, in get
  229. if user.group not in user_group_index.keys():
  230. AttributeError: 'User' object has no attribute 'group'
  231. [ERROR] [2022-10-06 11:08:49,680] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 101050
  232. [INFO] [2022-10-06 11:11:17,096] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  233. [INFO] [2022-10-06 11:11:17,417] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  234. [INFO] [2022-10-06 11:11:30,623] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 200 493
  235. [INFO] [2022-10-06 11:12:18,900] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 200 495
  236. [INFO] [2022-10-06 11:19:37,421] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  237. [INFO] [2022-10-06 11:19:37,730] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  238. [INFO] [2022-10-06 11:20:05,029] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 200 515
  239. [INFO] [2022-10-06 11:22:38,128] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/views/userview.py changed, reloading.
  240. [INFO] [2022-10-06 11:22:38,457] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  241. [INFO] [2022-10-06 11:23:01,401] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/views/userview.py changed, reloading.
  242. [INFO] [2022-10-06 11:23:01,675] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  243. [INFO] [2022-10-06 11:25:03,778] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/group/ HTTP/1.1" 200 84
  244. [INFO] [2022-10-06 11:25:36,752] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/group/TestLaboratory_V1_Group_3/edit HTTP/1.1" 200 15
  245. [INFO] [2022-10-06 11:25:47,805] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group?code=596640 HTTP/1.1" 301 0
  246. [INFO] [2022-10-06 11:25:47,825] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group/?code=596640 HTTP/1.1" 200 101
  247. [INFO] [2022-10-06 11:26:00,853] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_2/join HTTP/1.1" 200 12
  248. [INFO] [2022-10-06 11:26:08,278] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group HTTP/1.1" 301 0
  249. [INFO] [2022-10-06 11:26:08,304] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group/ HTTP/1.1" 200 267
  250. [INFO] [2022-10-06 11:26:33,793] [basehttp.py:161] [basehttp:log_message] - "DELETE /api/v1/group/TestLaboratory_V1_Group_3 HTTP/1.1" 200 12
  251. [INFO] [2022-10-06 11:26:37,691] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group HTTP/1.1" 301 0
  252. [INFO] [2022-10-06 11:26:37,712] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/group/ HTTP/1.1" 200 104
  253. [ERROR] [2022-10-06 11:26:58,747] [userlistview.py:38] [userlistview:post] - 用户名已存在,请修改用户名重新上传
  254. [ERROR] [2022-10-06 11:26:58,748] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  255. [ERROR] [2022-10-06 11:26:58,749] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/ HTTP/1.1" 500 51
  256. [INFO] [2022-10-06 11:27:04,845] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/ HTTP/1.1" 200 12
  257. [INFO] [2022-10-06 11:27:08,964] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 296
  258. [ERROR] [2022-10-06 11:27:29,246] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_5/edit
  259. Traceback (most recent call last):
  260. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  261. return self.cursor.execute(sql, params)
  262. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  263. return self.cursor.execute(query, args)
  264. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  265. result = self._query(query)
  266. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  267. conn.query(q)
  268. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  269. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  270. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  271. result.read()
  272. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  273. first_packet = self.connection._read_packet()
  274. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  275. packet.check_error()
  276. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  277. err.raise_mysql_exception(self._data)
  278. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  279. raise errorclass(errno, errval)
  280. pymysql.err.IntegrityError: (1062, "Duplicate entry 'doctor' for key 'user.username'")
  281. The above exception was the direct cause of the following exception:
  282. Traceback (most recent call last):
  283. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  284. response = get_response(request)
  285. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  286. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  287. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  288. return view_func(*args, **kwargs)
  289. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  290. return self.dispatch(request, *args, **kwargs)
  291. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  292. response = self.handle_exception(exc)
  293. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  294. self.raise_uncaught_exception(exc)
  295. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  296. raise exc
  297. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  298. response = handler(request, *args, **kwargs)
  299. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/middleware/rolecontrol.py", line 48, in __call__
  300. return self.func(request, *args, **kwargs)
  301. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/views/userview.py", line 60, in post
  302. user.save()
  303. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 726, in save
  304. self.save_base(using=using, force_insert=force_insert,
  305. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 763, in save_base
  306. updated = self._save_table(
  307. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 845, in _save_table
  308. updated = self._do_update(base_qs, using, pk_val, values, update_fields,
  309. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 899, in _do_update
  310. return filtered._update(values) > 0
  311. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 802, in _update
  312. return query.get_compiler(self.db).execute_sql(CURSOR)
  313. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1559, in execute_sql
  314. cursor = super().execute_sql(result_type)
  315. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
  316. cursor.execute(sql, params)
  317. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
  318. return super().execute(sql, params)
  319. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
  320. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  321. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
  322. return executor(sql, params, many, context)
  323. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  324. return self.cursor.execute(sql, params)
  325. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
  326. raise dj_exc_value.with_traceback(traceback) from exc_value
  327. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  328. return self.cursor.execute(sql, params)
  329. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  330. return self.cursor.execute(query, args)
  331. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  332. result = self._query(query)
  333. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  334. conn.query(q)
  335. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  336. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  337. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  338. result.read()
  339. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  340. first_packet = self.connection._read_packet()
  341. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  342. packet.check_error()
  343. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  344. err.raise_mysql_exception(self._data)
  345. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  346. raise errorclass(errno, errval)
  347. django.db.utils.IntegrityError: (1062, "Duplicate entry 'doctor' for key 'user.username'")
  348. [ERROR] [2022-10-06 11:27:29,256] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_5/edit HTTP/1.1" 500 248807
  349. [ERROR] [2022-10-06 11:27:32,414] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_5/edit
  350. Traceback (most recent call last):
  351. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  352. return self.cursor.execute(sql, params)
  353. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  354. return self.cursor.execute(query, args)
  355. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  356. result = self._query(query)
  357. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  358. conn.query(q)
  359. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  360. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  361. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  362. result.read()
  363. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  364. first_packet = self.connection._read_packet()
  365. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  366. packet.check_error()
  367. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  368. err.raise_mysql_exception(self._data)
  369. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  370. raise errorclass(errno, errval)
  371. pymysql.err.IntegrityError: (1062, "Duplicate entry 'doctor' for key 'user.username'")
  372. The above exception was the direct cause of the following exception:
  373. Traceback (most recent call last):
  374. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  375. response = get_response(request)
  376. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  377. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  378. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  379. return view_func(*args, **kwargs)
  380. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  381. return self.dispatch(request, *args, **kwargs)
  382. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  383. response = self.handle_exception(exc)
  384. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  385. self.raise_uncaught_exception(exc)
  386. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  387. raise exc
  388. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  389. response = handler(request, *args, **kwargs)
  390. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/middleware/rolecontrol.py", line 48, in __call__
  391. return self.func(request, *args, **kwargs)
  392. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/views/userview.py", line 60, in post
  393. user.save()
  394. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 726, in save
  395. self.save_base(using=using, force_insert=force_insert,
  396. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 763, in save_base
  397. updated = self._save_table(
  398. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 845, in _save_table
  399. updated = self._do_update(base_qs, using, pk_val, values, update_fields,
  400. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 899, in _do_update
  401. return filtered._update(values) > 0
  402. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 802, in _update
  403. return query.get_compiler(self.db).execute_sql(CURSOR)
  404. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1559, in execute_sql
  405. cursor = super().execute_sql(result_type)
  406. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
  407. cursor.execute(sql, params)
  408. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
  409. return super().execute(sql, params)
  410. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
  411. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  412. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
  413. return executor(sql, params, many, context)
  414. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  415. return self.cursor.execute(sql, params)
  416. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
  417. raise dj_exc_value.with_traceback(traceback) from exc_value
  418. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  419. return self.cursor.execute(sql, params)
  420. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  421. return self.cursor.execute(query, args)
  422. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  423. result = self._query(query)
  424. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  425. conn.query(q)
  426. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  427. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  428. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  429. result.read()
  430. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  431. first_packet = self.connection._read_packet()
  432. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  433. packet.check_error()
  434. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  435. err.raise_mysql_exception(self._data)
  436. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  437. raise errorclass(errno, errval)
  438. django.db.utils.IntegrityError: (1062, "Duplicate entry 'doctor' for key 'user.username'")
  439. [ERROR] [2022-10-06 11:27:32,477] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_5/edit HTTP/1.1" 500 248676
  440. [ERROR] [2022-10-06 11:28:12,635] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_5/edit
  441. Traceback (most recent call last):
  442. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  443. return self.cursor.execute(sql, params)
  444. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  445. return self.cursor.execute(query, args)
  446. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  447. result = self._query(query)
  448. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  449. conn.query(q)
  450. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  451. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  452. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  453. result.read()
  454. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  455. first_packet = self.connection._read_packet()
  456. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  457. packet.check_error()
  458. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  459. err.raise_mysql_exception(self._data)
  460. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  461. raise errorclass(errno, errval)
  462. pymysql.err.IntegrityError: (1062, "Duplicate entry 'doctor' for key 'user.username'")
  463. The above exception was the direct cause of the following exception:
  464. Traceback (most recent call last):
  465. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  466. response = get_response(request)
  467. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  468. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  469. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  470. return view_func(*args, **kwargs)
  471. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  472. return self.dispatch(request, *args, **kwargs)
  473. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  474. response = self.handle_exception(exc)
  475. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  476. self.raise_uncaught_exception(exc)
  477. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  478. raise exc
  479. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  480. response = handler(request, *args, **kwargs)
  481. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/middleware/rolecontrol.py", line 48, in __call__
  482. return self.func(request, *args, **kwargs)
  483. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/views/userview.py", line 60, in post
  484. user.save()
  485. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 726, in save
  486. self.save_base(using=using, force_insert=force_insert,
  487. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 763, in save_base
  488. updated = self._save_table(
  489. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 845, in _save_table
  490. updated = self._do_update(base_qs, using, pk_val, values, update_fields,
  491. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 899, in _do_update
  492. return filtered._update(values) > 0
  493. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 802, in _update
  494. return query.get_compiler(self.db).execute_sql(CURSOR)
  495. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1559, in execute_sql
  496. cursor = super().execute_sql(result_type)
  497. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
  498. cursor.execute(sql, params)
  499. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
  500. return super().execute(sql, params)
  501. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
  502. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  503. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
  504. return executor(sql, params, many, context)
  505. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  506. return self.cursor.execute(sql, params)
  507. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
  508. raise dj_exc_value.with_traceback(traceback) from exc_value
  509. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  510. return self.cursor.execute(sql, params)
  511. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  512. return self.cursor.execute(query, args)
  513. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  514. result = self._query(query)
  515. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  516. conn.query(q)
  517. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  518. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  519. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  520. result.read()
  521. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  522. first_packet = self.connection._read_packet()
  523. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  524. packet.check_error()
  525. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  526. err.raise_mysql_exception(self._data)
  527. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  528. raise errorclass(errno, errval)
  529. django.db.utils.IntegrityError: (1062, "Duplicate entry 'doctor' for key 'user.username'")
  530. [ERROR] [2022-10-06 11:28:12,644] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_5/edit HTTP/1.1" 500 248676
  531. [INFO] [2022-10-06 11:30:02,301] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/views/userview.py changed, reloading.
  532. [INFO] [2022-10-06 11:30:02,606] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  533. [ERROR] [2022-10-06 11:30:05,527] [userview.py:56] [userview:post] - 用户名已存在,请修改用户名
  534. [ERROR] [2022-10-06 11:30:05,528] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_5/edit
  535. [ERROR] [2022-10-06 11:30:05,528] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_5/edit HTTP/1.1" 500 39
  536. [INFO] [2022-10-06 11:30:12,244] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_5/edit HTTP/1.1" 200 15
  537. [INFO] [2022-10-06 11:30:31,858] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_6 HTTP/1.1" 200 67
  538. [ERROR] [2022-10-06 11:31:17,763] [userlistview.py:94] [userlistview:post] - 用户名或密码错误
  539. [ERROR] [2022-10-06 11:31:17,764] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/login
  540. [ERROR] [2022-10-06 11:31:17,765] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 500 24
  541. [INFO] [2022-10-06 11:31:26,287] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 307
  542. [INFO] [2022-10-06 11:31:29,886] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 200 622
  543. [INFO] [2022-10-06 11:31:34,608] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_6 HTTP/1.1" 200 67
  544. [ERROR] [2022-10-06 11:31:40,214] [userview.py:56] [userview:post] - 用户名已存在,请修改用户名
  545. [ERROR] [2022-10-06 11:31:40,215] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_5/edit
  546. [ERROR] [2022-10-06 11:31:40,215] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_5/edit HTTP/1.1" 500 39
  547. [INFO] [2022-10-06 11:31:44,583] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_5/edit HTTP/1.1" 200 15