123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460 |
- [INFO] [2022-06-19 11:13:49,473] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 11:14:35,512] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- Traceback (most recent call last):
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
- return self.cursor.execute(query, args)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
- result = self._query(query)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
- conn.query(q)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
- self._affected_rows = self._read_query_result(unbuffered=unbuffered)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
- result.read()
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
- first_packet = self.connection._read_packet()
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
- packet.check_error()
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
- err.raise_mysql_exception(self._data)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
- raise errorclass(errno, errval)
- pymysql.err.IntegrityError: (1048, "Column 'group' cannot be null")
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
- response = get_response(request)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
- response = wrapped_callback(request, *callback_args, **callback_kwargs)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
- return view_func(*args, **kwargs)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
- return self.dispatch(request, *args, **kwargs)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
- response = self.handle_exception(exc)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
- self.raise_uncaught_exception(exc)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
- raise exc
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
- response = handler(request, *args, **kwargs)
- File "/Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py", line 52, in post
- new_user = User.objects.create(**payload)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
- return getattr(self.get_queryset(), name)(*args, **kwargs)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 453, in create
- obj.save(force_insert=True, using=self.db)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 726, in save
- self.save_base(using=using, force_insert=force_insert,
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 763, in save_base
- updated = self._save_table(
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 868, in _save_table
- results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 906, in _do_insert
- return manager._insert(
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
- return getattr(self.get_queryset(), name)(*args, **kwargs)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 1270, in _insert
- return query.get_compiler(using=using).execute_sql(returning_fields)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1416, in execute_sql
- cursor.execute(sql, params)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
- return super().execute(sql, params)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
- return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
- return executor(sql, params, many, context)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
- raise dj_exc_value.with_traceback(traceback) from exc_value
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
- return self.cursor.execute(query, args)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
- result = self._query(query)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
- conn.query(q)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
- self._affected_rows = self._read_query_result(unbuffered=unbuffered)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
- result.read()
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
- first_packet = self.connection._read_packet()
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
- packet.check_error()
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
- err.raise_mysql_exception(self._data)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
- raise errorclass(errno, errval)
- django.db.utils.IntegrityError: (1048, "Column 'group' cannot be null")
- [ERROR] [2022-06-19 11:14:35,563] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/ HTTP/1.1" 500 249120
- [INFO] [2022-06-19 11:17:37,974] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
- [INFO] [2022-06-19 11:17:38,293] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 11:17:44,198] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/ HTTP/1.1" 200 12
- [INFO] [2022-06-19 11:20:03,104] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
- [INFO] [2022-06-19 11:20:03,456] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 11:20:18,216] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
- [INFO] [2022-06-19 11:20:18,516] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 11:20:32,482] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/ HTTP/1.1" 200 12
- [INFO] [2022-06-19 11:21:02,298] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/ HTTP/1.1" 200 12
- [INFO] [2022-06-19 11:24:46,456] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userview.py changed, reloading.
- [INFO] [2022-06-19 11:24:46,793] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 11:28:12,984] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 288
- [ERROR] [2022-06-19 11:29:42,227] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_4/edit
- [ERROR] [2022-06-19 11:29:42,228] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 500 21
- [INFO] [2022-06-19 11:33:18,599] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 11:33:18,939] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 11:33:21,552] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_4/edit
- [ERROR] [2022-06-19 11:33:21,553] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 500 21
- [INFO] [2022-06-19 11:34:11,685] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 11:34:11,907] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 11:34:14,346] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_4/edit
- [ERROR] [2022-06-19 11:34:14,347] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 500 21
- [INFO] [2022-06-19 11:34:31,691] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 11:34:31,934] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 11:34:32,940] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_4/edit
- [ERROR] [2022-06-19 11:34:32,941] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 500 21
- [INFO] [2022-06-19 11:35:11,195] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 11:35:11,420] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 11:35:15,577] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_4/edit
- [ERROR] [2022-06-19 11:35:15,578] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 500 21
- [INFO] [2022-06-19 11:35:46,668] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 11:35:46,902] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 11:35:48,185] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_4/edit
- [ERROR] [2022-06-19 11:35:48,186] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 500 21
- [INFO] [2022-06-19 11:36:49,819] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 11:36:50,055] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 11:36:52,345] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_4/edit
- Traceback (most recent call last):
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
- return self.cursor.execute(query, args)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
- result = self._query(query)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
- conn.query(q)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
- self._affected_rows = self._read_query_result(unbuffered=unbuffered)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
- result.read()
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
- first_packet = self.connection._read_packet()
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
- packet.check_error()
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
- err.raise_mysql_exception(self._data)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
- raise errorclass(errno, errval)
- pymysql.err.IntegrityError: (1048, "Column 'tel' cannot be null")
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
- response = get_response(request)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
- response = wrapped_callback(request, *callback_args, **callback_kwargs)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
- return view_func(*args, **kwargs)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
- return self.dispatch(request, *args, **kwargs)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
- response = self.handle_exception(exc)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
- self.raise_uncaught_exception(exc)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
- raise exc
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
- response = handler(request, *args, **kwargs)
- File "/Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py", line 44, in __call__
- return self.func(request, *args, **kwargs)
- File "/Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userview.py", line 61, in post
- user.save()
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 726, in save
- self.save_base(using=using, force_insert=force_insert,
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 763, in save_base
- updated = self._save_table(
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 845, in _save_table
- updated = self._do_update(base_qs, using, pk_val, values, update_fields,
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 899, in _do_update
- return filtered._update(values) > 0
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 802, in _update
- return query.get_compiler(self.db).execute_sql(CURSOR)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1559, in execute_sql
- cursor = super().execute_sql(result_type)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
- cursor.execute(sql, params)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
- return super().execute(sql, params)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
- return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
- return executor(sql, params, many, context)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
- raise dj_exc_value.with_traceback(traceback) from exc_value
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
- return self.cursor.execute(query, args)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
- result = self._query(query)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
- conn.query(q)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
- self._affected_rows = self._read_query_result(unbuffered=unbuffered)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
- result.read()
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
- first_packet = self.connection._read_packet()
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
- packet.check_error()
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
- err.raise_mysql_exception(self._data)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
- raise errorclass(errno, errval)
- django.db.utils.IntegrityError: (1048, "Column 'tel' cannot be null")
- [ERROR] [2022-06-19 11:36:52,356] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 500 244962
- [INFO] [2022-06-19 11:37:35,409] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userview.py changed, reloading.
- [INFO] [2022-06-19 11:37:35,641] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 11:37:41,989] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 200 15
- [INFO] [2022-06-19 11:38:38,694] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 200 15
- [WARNING] [2022-06-19 11:43:12,776] [log.py:224] [log:log_response] - Forbidden: /api/v1/users/TestLaboratory_V1_User_4
- [WARNING] [2022-06-19 11:43:12,776] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 403 37
- [INFO] [2022-06-19 11:43:43,400] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 64
- [INFO] [2022-06-19 11:44:01,354] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 11:44:01,675] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 11:44:03,855] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 64
- [INFO] [2022-06-19 11:44:26,751] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 11:44:26,987] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 11:44:29,061] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 64
- [INFO] [2022-06-19 11:45:10,977] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 200 15
- [INFO] [2022-06-19 11:46:18,575] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 11:46:18,991] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 11:46:30,089] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 64
- [INFO] [2022-06-19 11:50:12,525] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 11:50:12,854] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 11:50:17,271] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 64
- [INFO] [2022-06-19 11:50:22,872] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 200 15
- [INFO] [2022-06-19 11:51:55,804] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 200 15
- [INFO] [2022-06-19 11:54:53,551] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userview.py changed, reloading.
- [INFO] [2022-06-19 11:54:53,899] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 11:55:04,245] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 81
- [INFO] [2022-06-19 11:56:11,710] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
- [INFO] [2022-06-19 11:56:12,042] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 11:57:06,761] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- [ERROR] [2022-06-19 11:57:06,761] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
- [WARNING] [2022-06-19 11:57:17,729] [log.py:224] [log:log_response] - Not Found: /api/v1/users
- [WARNING] [2022-06-19 11:57:17,729] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 404 2841
- [ERROR] [2022-06-19 11:57:56,475] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- [ERROR] [2022-06-19 11:57:56,476] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
- [INFO] [2022-06-19 11:59:09,744] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/TestLaboratory/urls.py changed, reloading.
- [INFO] [2022-06-19 11:59:10,076] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 11:59:20,588] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/urls.py changed, reloading.
- [INFO] [2022-06-19 11:59:20,854] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 11:59:35,423] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/urls.py changed, reloading.
- [INFO] [2022-06-19 11:59:35,680] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [WARNING] [2022-06-19 11:59:39,158] [log.py:224] [log:log_response] - Not Found: /api/v1/users/
- [WARNING] [2022-06-19 11:59:39,158] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 404 3415
- [ERROR] [2022-06-19 11:59:41,276] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users
- [ERROR] [2022-06-19 11:59:41,277] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 500 21
- [ERROR] [2022-06-19 11:59:57,947] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users
- [ERROR] [2022-06-19 11:59:57,948] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 500 21
- [INFO] [2022-06-19 12:00:16,068] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/TestLaboratory/urls.py changed, reloading.
- [INFO] [2022-06-19 12:00:16,387] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [WARNING] [2022-06-19 12:00:21,654] [log.py:224] [log:log_response] - Not Found: /api/v1/users
- [WARNING] [2022-06-19 12:00:21,654] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 404 2841
- [ERROR] [2022-06-19 12:00:25,180] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- [ERROR] [2022-06-19 12:00:25,181] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
- [INFO] [2022-06-19 12:01:05,971] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:01:06,306] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 12:01:09,660] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/TestLaboratory/urls.py changed, reloading.
- [INFO] [2022-06-19 12:01:09,893] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [WARNING] [2022-06-19 12:01:12,205] [log.py:224] [log:log_response] - Not Found: /api/v1/users/
- [WARNING] [2022-06-19 12:01:12,205] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 404 3415
- [ERROR] [2022-06-19 12:01:19,960] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users
- [ERROR] [2022-06-19 12:01:19,961] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 500 21
- [INFO] [2022-06-19 12:02:03,559] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:02:03,793] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 12:02:06,813] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users
- [ERROR] [2022-06-19 12:02:06,814] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 500 21
- [INFO] [2022-06-19 12:02:47,207] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:02:47,444] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 12:02:50,488] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users
- Traceback (most recent call last):
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/request.py", line 416, in __getattr__
- return getattr(self._request, attr)
- AttributeError: 'WSGIRequest' object has no attribute 'url'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
- response = get_response(request)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
- response = wrapped_callback(request, *callback_args, **callback_kwargs)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
- return view_func(*args, **kwargs)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
- return self.dispatch(request, *args, **kwargs)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
- response = self.handle_exception(exc)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
- self.raise_uncaught_exception(exc)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
- raise exc
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
- response = handler(request, *args, **kwargs)
- File "/Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py", line 36, in __call__
- print(per.url, request.path, re.fullmatch(per.url, request.path), per.url == request.url)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/request.py", line 418, in __getattr__
- return self.__getattribute__(attr)
- AttributeError: 'Request' object has no attribute 'url'
- [ERROR] [2022-06-19 12:02:50,492] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 500 101329
- [INFO] [2022-06-19 12:03:02,061] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:03:02,297] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 12:03:04,238] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users
- [ERROR] [2022-06-19 12:03:04,239] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 500 21
- [WARNING] [2022-06-19 12:03:53,562] [log.py:224] [log:log_response] - Not Found: /api/v1/users/TestLaboratory_V1_User_4
- [WARNING] [2022-06-19 12:03:53,563] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 404 3482
- [INFO] [2022-06-19 12:05:07,926] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/TestLaboratory/urls.py changed, reloading.
- [INFO] [2022-06-19 12:05:08,166] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 12:05:10,303] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 81
- [WARNING] [2022-06-19 12:05:27,085] [log.py:224] [log:log_response] - Not Found: /api/v1/users
- [WARNING] [2022-06-19 12:05:27,085] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 404 2841
- [ERROR] [2022-06-19 12:05:38,893] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- [ERROR] [2022-06-19 12:05:38,893] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
- [INFO] [2022-06-19 12:07:09,502] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:07:09,812] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 12:07:12,801] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- [ERROR] [2022-06-19 12:07:12,801] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
- [INFO] [2022-06-19 12:07:29,679] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:07:29,969] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 12:07:32,575] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- [ERROR] [2022-06-19 12:07:32,577] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
- [INFO] [2022-06-19 12:08:23,630] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:08:23,912] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 12:08:24,804] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- [ERROR] [2022-06-19 12:08:24,805] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
- [INFO] [2022-06-19 12:09:14,525] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:09:14,763] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 12:09:18,065] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:09:18,307] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 12:09:20,771] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- [ERROR] [2022-06-19 12:09:20,772] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
- [INFO] [2022-06-19 12:10:12,910] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:10:13,158] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 12:10:16,151] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- [ERROR] [2022-06-19 12:10:16,151] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
- [INFO] [2022-06-19 12:10:31,932] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:10:32,281] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 12:10:38,237] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- [ERROR] [2022-06-19 12:10:38,238] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
- [ERROR] [2022-06-19 12:10:38,678] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- [ERROR] [2022-06-19 12:10:38,679] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
- [INFO] [2022-06-19 12:11:53,774] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:11:54,083] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 12:12:58,518] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:12:58,846] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 12:13:00,487] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- [ERROR] [2022-06-19 12:13:00,487] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
- [INFO] [2022-06-19 12:13:23,876] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:13:24,197] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 12:13:50,753] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- [ERROR] [2022-06-19 12:13:50,754] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
- [INFO] [2022-06-19 12:14:31,320] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:14:31,628] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 12:14:34,116] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 200 432
- [INFO] [2022-06-19 12:15:06,852] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
- [INFO] [2022-06-19 12:15:07,165] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 12:15:09,116] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 200 432
- [INFO] [2022-06-19 12:15:16,274] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 81
- [INFO] [2022-06-19 12:15:29,588] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 200 15
- [INFO] [2022-06-19 12:19:11,888] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
- [INFO] [2022-06-19 12:19:12,232] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 12:19:23,865] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 315
- [INFO] [2022-06-19 12:45:54,349] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/urls.py changed, reloading.
- [INFO] [2022-06-19 12:45:54,701] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 12:46:01,001] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/urls.py changed, reloading.
- [INFO] [2022-06-19 12:46:01,390] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 12:46:42,455] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/urls.py changed, reloading.
- [INFO] [2022-06-19 12:46:42,676] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 12:47:37,184] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/urls.py changed, reloading.
- [INFO] [2022-06-19 12:47:37,415] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 12:48:09,412] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/urls.py changed, reloading.
- [INFO] [2022-06-19 12:48:09,722] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 15:34:37,455] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
- [INFO] [2022-06-19 15:34:37,813] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 15:37:53,329] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
- [INFO] [2022-06-19 15:37:53,618] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 15:39:06,135] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
- [INFO] [2022-06-19 15:39:06,431] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 15:44:27,562] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
- [INFO] [2022-06-19 15:44:27,915] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 15:44:41,529] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
- [INFO] [2022-06-19 15:44:41,761] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [ERROR] [2022-06-19 15:44:53,644] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
- Traceback (most recent call last):
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
- response = get_response(request)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
- response = wrapped_callback(request, *callback_args, **callback_kwargs)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
- return view_func(*args, **kwargs)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
- return self.dispatch(request, *args, **kwargs)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
- response = self.handle_exception(exc)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
- self.raise_uncaught_exception(exc)
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
- raise exc
- File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
- response = handler(request, *args, **kwargs)
- File "/Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py", line 48, in __call__
- return self.func(request, *args, **kwargs)
- File "/Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py", line 81, in get
- users_info[user_group[user.group]] = [{
- IndexError: list assignment index out of range
- [ERROR] [2022-06-19 15:44:53,650] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 97921
- [INFO] [2022-06-19 15:46:07,229] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
- [INFO] [2022-06-19 15:46:07,561] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 15:46:16,912] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
- [INFO] [2022-06-19 15:46:17,208] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 15:46:22,773] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 200 662
- [INFO] [2022-06-19 15:47:32,633] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
- [INFO] [2022-06-19 15:47:32,962] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 15:49:34,001] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
- [INFO] [2022-06-19 15:49:34,215] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
- [INFO] [2022-06-19 15:49:36,032] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 200 736
|