[INFO] [2022-02-26 11:10:47,674] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 11:10:54,130] [log.py:224] [log:log_response] - Not Found: / [WARNING] [2022-02-26 11:10:54,130] [basehttp.py:161] [basehttp:log_message] - "GET / HTTP/1.1" 404 2667 [ERROR] [2022-02-26 11:11:14,654] [userlistview.py:62] [userlistview:put] - 用户名或密码错误 [ERROR] [2022-02-26 11:11:14,656] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/ [ERROR] [2022-02-26 11:11:14,657] [basehttp.py:161] [basehttp:log_message] - "PUT /api/v1/users/ HTTP/1.1" 500 24 [INFO] [2022-02-26 11:11:17,389] [basehttp.py:161] [basehttp:log_message] - "PUT /api/v1/users/ HTTP/1.1" 200 292 [INFO] [2022-02-26 11:13:25,075] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2022-02-26 15:56:52,370] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 15:57:07,140] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 15:57:07,141] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [WARNING] [2022-02-26 16:01:18,297] [log.py:224] [log:log_response] - Forbidden: /api/v1/users/login [WARNING] [2022-02-26 16:01:18,298] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/login HTTP/1.1" 403 5333 [INFO] [2022-02-26 16:01:18,324] [basehttp.py:161] [basehttp:log_message] - "GET /static/rest_framework/css/prettify.css HTTP/1.1" 200 817 [INFO] [2022-02-26 16:01:18,325] [basehttp.py:161] [basehttp:log_message] - "GET /static/rest_framework/css/bootstrap-tweaks.css HTTP/1.1" 200 3385 [INFO] [2022-02-26 16:01:18,325] [basehttp.py:161] [basehttp:log_message] - "GET /static/rest_framework/css/default.css HTTP/1.1" 200 1131 [INFO] [2022-02-26 16:01:18,328] [basehttp.py:161] [basehttp:log_message] - "GET /static/rest_framework/js/ajax-form.js HTTP/1.1" 200 3597 [INFO] [2022-02-26 16:01:18,329] [basehttp.py:161] [basehttp:log_message] - "GET /static/rest_framework/js/csrf.js HTTP/1.1" 200 1719 [INFO] [2022-02-26 16:01:18,330] [basehttp.py:161] [basehttp:log_message] - "GET /static/rest_framework/js/prettify-min.js HTTP/1.1" 200 13632 [INFO] [2022-02-26 16:01:18,330] [basehttp.py:161] [basehttp:log_message] - "GET /static/rest_framework/js/jquery-3.5.1.min.js HTTP/1.1" 200 89476 [INFO] [2022-02-26 16:01:18,331] [basehttp.py:161] [basehttp:log_message] - "GET /static/rest_framework/js/bootstrap.min.js HTTP/1.1" 200 39680 [INFO] [2022-02-26 16:01:18,331] [basehttp.py:161] [basehttp:log_message] - "GET /static/rest_framework/js/default.js HTTP/1.1" 200 1268 [INFO] [2022-02-26 16:01:18,331] [basehttp.py:161] [basehttp:log_message] - "GET /static/rest_framework/css/bootstrap.min.css HTTP/1.1" 200 121457 [INFO] [2022-02-26 16:01:18,396] [basehttp.py:161] [basehttp:log_message] - "GET /static/rest_framework/img/grid.png HTTP/1.1" 200 1458 [INFO] [2022-02-26 16:01:24,409] [basehttp.py:161] [basehttp:log_message] - "OPTIONS /api/v1/users/login HTTP/1.1" 200 7377 [WARNING] [2022-02-26 16:01:38,714] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 16:01:38,714] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [INFO] [2022-02-26 16:03:37,649] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/urls.py changed, reloading. [INFO] [2022-02-26 16:03:37,940] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 16:03:43,103] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 16:03:43,104] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [INFO] [2022-02-26 16:04:41,361] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/urls.py changed, reloading. [INFO] [2022-02-26 16:04:41,668] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2022-02-26 16:05:32,311] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/views/userlistview.py changed, reloading. [INFO] [2022-02-26 16:05:32,574] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 16:05:34,905] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 16:05:34,906] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [INFO] [2022-02-26 16:06:11,964] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/views/userlistview.py changed, reloading. [INFO] [2022-02-26 16:06:12,259] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 16:06:14,153] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 16:06:14,154] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [INFO] [2022-02-26 16:07:20,425] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/views/userlistview.py changed, reloading. [INFO] [2022-02-26 16:07:20,687] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2022-02-26 16:08:05,209] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/views/userlistview.py changed, reloading. [INFO] [2022-02-26 16:08:05,496] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 16:08:12,138] [log.py:224] [log:log_response] - Forbidden: /api/v1/users/login [WARNING] [2022-02-26 16:08:12,139] [basehttp.py:161] [basehttp:log_message] - "PUT /api/v1/users/login HTTP/1.1" 403 43 [INFO] [2022-02-26 16:09:04,611] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/views/userlistview.py changed, reloading. [INFO] [2022-02-26 16:09:04,875] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 16:09:07,392] [log.py:224] [log:log_response] - Forbidden: /api/v1/users/login [WARNING] [2022-02-26 16:09:07,393] [basehttp.py:161] [basehttp:log_message] - "PUT /api/v1/users/login HTTP/1.1" 403 43 [INFO] [2022-02-26 16:09:17,512] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/views/userlistview.py changed, reloading. [INFO] [2022-02-26 16:09:17,765] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 16:09:20,010] [log.py:224] [log:log_response] - Forbidden: /api/v1/users/login [WARNING] [2022-02-26 16:09:20,010] [basehttp.py:161] [basehttp:log_message] - "PUT /api/v1/users/login HTTP/1.1" 403 43 [INFO] [2022-02-26 16:10:18,810] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/views/userlistview.py changed, reloading. [INFO] [2022-02-26 16:10:19,088] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 16:10:21,436] [log.py:224] [log:log_response] - Forbidden: /api/v1/users/login [WARNING] [2022-02-26 16:10:21,437] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/login HTTP/1.1" 403 43 [ERROR] [2022-02-26 16:10:44,942] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users Traceback (most recent call last): File "/Users/liufan/.local/share/virtualenvs/TestLaboratory-PPS75GMw/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/.local/share/virtualenvs/TestLaboratory-PPS75GMw/lib/python3.8/site-packages/django/utils/deprecation.py", line 116, in __call__ response = self.process_request(request) File "/Users/liufan/.local/share/virtualenvs/TestLaboratory-PPS75GMw/lib/python3.8/site-packages/django/middleware/common.py", line 54, in process_request path = self.get_full_path_with_slash(request) File "/Users/liufan/.local/share/virtualenvs/TestLaboratory-PPS75GMw/lib/python3.8/site-packages/django/middleware/common.py", line 88, in get_full_path_with_slash raise RuntimeError( RuntimeError: You called this URL via PUT, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining PUT data. Change your form to point to 127.0.0.1:8000/api/v1/users/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings. [ERROR] [2022-02-26 16:10:44,944] [basehttp.py:161] [basehttp:log_message] - "PUT /api/v1/users HTTP/1.1" 500 70380 [INFO] [2022-02-26 16:11:22,172] [basehttp.py:161] [basehttp:log_message] - "PUT /api/v1/users/ HTTP/1.1" 200 292 [INFO] [2022-02-26 16:11:58,668] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/views/userlistview.py changed, reloading. [INFO] [2022-02-26 16:11:58,954] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 16:12:00,797] [log.py:224] [log:log_response] - Not Found: /api/v1/users/login/ [WARNING] [2022-02-26 16:12:00,798] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login/ HTTP/1.1" 404 3134 [INFO] [2022-02-26 16:12:14,704] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 16:12:18,088] [log.py:224] [log:log_response] - Not Found: /api/v1/users/login/ [WARNING] [2022-02-26 16:12:18,088] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login/ HTTP/1.1" 404 3134 [WARNING] [2022-02-26 16:12:29,110] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 16:12:29,111] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [INFO] [2022-02-26 16:15:13,019] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/views/userlistview.py changed, reloading. [INFO] [2022-02-26 16:15:13,306] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 16:15:20,285] [log.py:224] [log:log_response] - Forbidden: /api/v1/users/login [WARNING] [2022-02-26 16:15:20,286] [basehttp.py:161] [basehttp:log_message] - "PUT /api/v1/users/login HTTP/1.1" 403 43 [INFO] [2022-02-26 16:18:18,303] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/views/userlistview.py changed, reloading. [INFO] [2022-02-26 16:18:18,588] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 16:18:26,086] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 16:18:26,087] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [WARNING] [2022-02-26 16:18:27,373] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 16:18:27,374] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [WARNING] [2022-02-26 16:18:27,961] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 16:18:27,962] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [WARNING] [2022-02-26 16:18:28,599] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 16:18:28,600] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [WARNING] [2022-02-26 16:18:29,497] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 16:18:29,498] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [WARNING] [2022-02-26 16:18:29,930] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 16:18:29,931] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [INFO] [2022-02-26 17:00:53,555] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 17:00:58,023] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 17:00:58,024] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [INFO] [2022-02-26 17:04:10,500] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/views/userlistview.py changed, reloading. [INFO] [2022-02-26 17:04:10,759] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2022-02-26 17:05:33,168] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/views/userlistview.py changed, reloading. [INFO] [2022-02-26 17:05:33,415] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 17:05:37,029] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 17:05:37,030] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [INFO] [2022-02-26 17:05:52,278] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/views/userlistview.py changed, reloading. [INFO] [2022-02-26 17:05:52,483] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [WARNING] [2022-02-26 17:05:54,476] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 17:05:54,477] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [WARNING] [2022-02-26 17:06:10,968] [log.py:224] [log:log_response] - Forbidden: /api/v1/users/login [WARNING] [2022-02-26 17:06:10,969] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/login HTTP/1.1" 403 43 [WARNING] [2022-02-26 17:06:50,973] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 17:06:50,974] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [ERROR] [2022-02-26 17:07:08,634] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users Traceback (most recent call last): File "/Users/liufan/.local/share/virtualenvs/TestLaboratory-PPS75GMw/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/.local/share/virtualenvs/TestLaboratory-PPS75GMw/lib/python3.8/site-packages/django/utils/deprecation.py", line 116, in __call__ response = self.process_request(request) File "/Users/liufan/.local/share/virtualenvs/TestLaboratory-PPS75GMw/lib/python3.8/site-packages/django/middleware/common.py", line 54, in process_request path = self.get_full_path_with_slash(request) File "/Users/liufan/.local/share/virtualenvs/TestLaboratory-PPS75GMw/lib/python3.8/site-packages/django/middleware/common.py", line 88, in get_full_path_with_slash raise RuntimeError( RuntimeError: You called this URL via PUT, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining PUT data. Change your form to point to 127.0.0.1:8000/api/v1/users/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings. [ERROR] [2022-02-26 17:07:08,636] [basehttp.py:161] [basehttp:log_message] - "PUT /api/v1/users HTTP/1.1" 500 70380 [INFO] [2022-02-26 17:07:17,110] [basehttp.py:161] [basehttp:log_message] - "PUT /api/v1/users/ HTTP/1.1" 200 292 [WARNING] [2022-02-26 17:08:09,732] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/users/login [WARNING] [2022-02-26 17:08:09,732] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 405 41 [ERROR] [2022-02-26 17:08:18,081] [userview.py:48] [userview:get] - 用户不存在 [WARNING] [2022-02-26 17:08:18,081] [log.py:224] [log:log_response] - Not Found: /api/v1/users/login [WARNING] [2022-02-26 17:08:18,081] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/login HTTP/1.1" 404 15 [INFO] [2022-02-26 17:09:57,353] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/urls.py changed, reloading. [INFO] [2022-02-26 17:09:57,623] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [ERROR] [2022-02-26 17:10:04,062] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/login Traceback (most recent call last): File "/Users/liufan/.local/share/virtualenvs/TestLaboratory-PPS75GMw/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/.local/share/virtualenvs/TestLaboratory-PPS75GMw/lib/python3.8/site-packages/django/core/handlers/base.py", line 204, in _get_response response = response.render() File "/Users/liufan/.local/share/virtualenvs/TestLaboratory-PPS75GMw/lib/python3.8/site-packages/django/template/response.py", line 105, in render self.content = self.rendered_content File "/Users/liufan/.local/share/virtualenvs/TestLaboratory-PPS75GMw/lib/python3.8/site-packages/rest_framework/response.py", line 55, in rendered_content assert renderer, ".accepted_renderer not set on Response" AssertionError: .accepted_renderer not set on Response [ERROR] [2022-02-26 17:10:04,065] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 500 69858 [INFO] [2022-02-26 17:12:10,797] [autoreload.py:250] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_v1.2/TestLaboratory/apps/user/views/userlistview.py changed, reloading. [INFO] [2022-02-26 17:12:11,091] [autoreload.py:636] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2022-02-26 17:12:14,059] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 292