<<<<<<< HEAD WARNING 2019-10-26 15:31:41,879 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:31:41,879 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39 INFO 2019-10-26 15:35:42,526 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 15:35:46,076 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:35:46,076 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39 WARNING 2019-10-26 15:37:52,221 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:37:52,222 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39 WARNING 2019-10-26 15:39:56,569 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:39:56,570 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-10-26 15:40:06,688 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:40:06,688 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39 INFO 2019-10-26 15:41:08,490 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 15:43:52,321 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:43:52,321 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39 INFO 2019-10-26 15:44:05,338 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-10-26 15:44:32,840 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 WARNING 2019-10-26 15:44:36,934 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:44:36,934 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-10-26 15:44:55,973 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:44:55,973 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 WARNING 2019-10-26 15:45:16,193 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:45:16,194 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 15:45:32,802 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 15:45:40,839 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 15:45:43,261 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:45:43,262 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 15:45:51,198 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 15:45:53,169 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 15:45:56,463 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 15:45:57,690 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 15:45:58,635 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 15:45:59,382 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 WARNING 2019-10-26 15:46:39,703 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:46:39,704 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 WARNING 2019-10-26 15:46:40,883 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:46:40,883 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 15:46:44,675 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-10-26 15:46:47,737 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 WARNING 2019-10-26 15:46:48,995 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:46:48,996 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 15:46:52,536 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 15:46:53,809 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:46:53,809 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-10-26 15:46:55,169 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:46:55,169 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 15:47:22,946 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24 INFO 2019-10-26 15:47:25,783 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24 INFO 2019-10-26 15:47:46,364 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 WARNING 2019-10-26 15:47:48,702 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:47:48,702 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 15:57:11,237 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 15:57:13,888 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:57:13,889 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-10-26 15:57:15,422 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:57:15,422 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 15:57:42,581 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24 INFO 2019-10-26 15:57:44,459 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24 INFO 2019-10-26 15:58:22,380 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-10-26 16:00:24,377 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24 INFO 2019-10-26 16:01:06,398 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 WARNING 2019-10-26 16:01:08,375 log 228 Forbidden: /invoice/ WARNING 2019-10-26 16:01:08,376 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 16:01:41,337 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 16:01:42,339 log 228 Forbidden: /invoice/ WARNING 2019-10-26 16:01:42,339 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-10-26 16:01:55,226 log 228 Forbidden: /invoice/ WARNING 2019-10-26 16:01:55,227 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 16:10:06,833 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 16:11:23,976 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 16:11:51,199 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 ERROR 2019-10-26 16:22:50,204 log 228 Internal Server Error: /paymentoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 101, in post ,datetime.datetime.strptime(RP_DD, '%Y-%m-%d'),RP_NO]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 542, in execute sql = self.format_sql(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 510, in format_sql sql = sql % tuple('?' * len(params)) TypeError: not all arguments converted during string formatting ERROR 2019-10-26 16:22:50,206 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 500 110930 INFO 2019-10-26 16:24:33,700 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 WARNING 2019-10-26 16:25:03,979 log 228 Forbidden: /invoice/ WARNING 2019-10-26 16:25:03,980 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 48 INFO 2019-10-26 16:25:17,685 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 16:25:20,901 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-10-26 16:25:27,596 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 16:27:43,951 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 16:47:21,302 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 16:47:21,302 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 15 WARNING 2019-10-26 16:49:22,716 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 16:49:22,716 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 15 ERROR 2019-10-26 16:49:54,113 log 228 Internal Server Error: /paymentoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 180, in put row_AMTN = cursor.execute("""SELECT AMTN_BC FROM TF_MON WHERE RP_NO=%s AND PR_ID='2'""", [RP_NO]).fetchall()[0][0] File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-10-26 16:49:54,117 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 500 126543 ERROR 2019-10-26 16:50:35,155 log 228 Internal Server Error: /paymentoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 180, in put row_AMTN = cursor.execute("""SELECT AMTN_BC FROM TF_MON WHERE RP_NO=%s AND PR_ID='2'""", [RP_NO]).fetchall()[0][0] File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-10-26 16:50:35,157 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 500 126546 ERROR 2019-10-26 16:51:00,696 log 228 Internal Server Error: /paymentoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 180, in put row_AMTN = cursor.execute("""SELECT AMTN_BC FROM TF_MON WHERE RP_NO=%s AND PR_ID='2'""", [RP_NO]).fetchall()[0][0] File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-10-26 16:51:00,698 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 500 126546 WARNING 2019-10-26 17:00:46,983 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:00:46,983 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21 WARNING 2019-10-26 17:00:59,051 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:00:59,051 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21 WARNING 2019-10-26 17:01:35,345 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:01:35,345 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21 WARNING 2019-10-26 17:02:54,095 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:02:54,095 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21 INFO 2019-10-26 17:03:37,523 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36 INFO 2019-10-26 17:04:55,512 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36 WARNING 2019-10-26 17:30:24,738 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:30:24,739 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15 ERROR 2019-10-26 17:30:59,238 log 228 Internal Server Error: /paymentoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 297, in delete cursor.execute("""DELETE FROM MF_BAC WHERE BB_NO=%s AND RP_ID='2'""", ['BT'+RP_NO[2::]]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-10-26 17:30:59,241 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 500 126111 INFO 2019-10-26 17:33:53,187 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 WARNING 2019-10-26 17:34:25,873 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:34:25,874 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 36 WARNING 2019-10-26 17:34:33,716 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:34:33,716 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15 INFO 2019-10-26 17:39:32,014 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 17:39:50,505 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36 INFO 2019-10-26 17:40:11,226 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 17:48:51,576 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 17:49:04,517 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 INFO 2019-10-26 17:49:13,853 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 17:49:17,183 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 WARNING 2019-10-26 17:49:39,792 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:49:39,792 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15 INFO 2019-10-26 18:28:14,669 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 INFO 2019-10-26 18:28:18,274 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 18:28:21,150 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 18:28:25,458 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 18:28:25,458 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21 INFO 2019-10-26 18:30:04,306 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 18:30:19,015 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36 WARNING 2019-10-26 18:30:28,836 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 18:30:28,837 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21 INFO 2019-10-26 18:30:38,718 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 18:31:02,819 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 INFO 2019-10-26 18:35:00,176 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 INFO 2019-10-26 18:35:06,199 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 18:35:09,065 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-10-26 18:35:32,737 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 18:35:38,682 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36 INFO 2019-10-26 18:35:48,661 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 18:35:55,766 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 INFO 2019-10-28 09:04:08,436 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 WARNING 2019-10-28 09:05:08,930 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:05:08,930 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 403 15 INFO 2019-10-28 09:05:19,111 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42 INFO 2019-10-28 09:14:12,133 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42 INFO 2019-10-28 09:23:44,854 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42 INFO 2019-10-28 09:24:13,707 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42 WARNING 2019-10-28 09:24:58,993 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:24:58,993 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 403 27 WARNING 2019-10-28 09:28:41,541 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:28:41,542 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 15 WARNING 2019-10-28 09:29:03,803 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:29:03,803 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 15 INFO 2019-10-28 09:30:24,164 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 200 45 WARNING 2019-10-28 09:34:09,682 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:34:09,682 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 27 INFO 2019-10-28 09:34:29,286 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 INFO 2019-10-28 09:34:49,859 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42 WARNING 2019-10-28 09:35:20,642 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:35:20,643 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 33 WARNING 2019-10-28 09:35:37,100 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:35:37,101 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 33 INFO 2019-10-28 09:39:00,461 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 200 45 INFO 2019-10-28 09:39:06,134 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-28 09:39:09,613 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36 INFO 2019-10-28 09:39:34,619 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36 INFO 2019-10-28 09:39:56,474 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 INFO 2019-10-28 09:40:00,198 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42 WARNING 2019-10-28 09:40:35,489 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:40:35,490 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 33 INFO 2019-10-28 09:40:42,079 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 200 45 WARNING 2019-10-28 13:20:21,682 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 13:20:21,682 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 24 INFO 2019-10-28 13:20:26,561 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 WARNING 2019-10-28 13:20:30,181 log 228 Forbidden: /invoice/ WARNING 2019-10-28 13:20:30,182 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 48 WARNING 2019-10-28 13:20:47,121 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-28 13:20:47,122 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15 INFO 2019-10-28 13:20:55,254 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 INFO 2019-10-28 13:20:58,635 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-28 13:21:04,731 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-10-28 13:27:56,959 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 WARNING 2019-10-28 13:27:58,680 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 13:27:58,680 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24 INFO 2019-10-28 13:28:21,935 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42 INFO 2019-10-28 13:34:02,390 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-10-28 13:35:23,918 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 200 55 INFO 2019-10-28 15:36:48,198 basehttp 154 "PUT /expectedptoperation/ HTTP/1.1" 200 54 INFO 2019-10-28 15:41:44,910 basehttp 154 "DELETE /expectedptoperation/ HTTP/1.1" 200 57 WARNING 2019-10-28 15:41:47,353 log 228 Forbidden: /expectedptoperation/ WARNING 2019-10-28 15:41:47,353 basehttp 154 "DELETE /expectedptoperation/ HTTP/1.1" 403 15 ERROR 2019-10-28 17:13:21,613 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner return func(*args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall return self.format_rows(self.cursor.fetchall()) pyodbc.ProgrammingError: No results. Previous SQL was not a query. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 25, in get row = cursor.fetchall() File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner return func(*args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner return func(*args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall return self.format_rows(self.cursor.fetchall()) django.db.utils.ProgrammingError: No results. Previous SQL was not a query. ERROR 2019-10-28 17:13:21,617 basehttp 154 "GET /invoice/ HTTP/1.1" 500 103126 ERROR 2019-10-28 17:14:09,053 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner return func(*args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall return self.format_rows(self.cursor.fetchall()) pyodbc.ProgrammingError: No results. Previous SQL was not a query. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 26, in get row = cursor.fetchall() File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner return func(*args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner return func(*args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall return self.format_rows(self.cursor.fetchall()) django.db.utils.ProgrammingError: No results. Previous SQL was not a query. ERROR 2019-10-28 17:14:09,055 basehttp 154 "GET /invoice/ HTTP/1.1" 500 103121 INFO 2019-10-28 17:14:37,315 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-10-28 17:18:40,853 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-10-28 17:46:37,114 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-10-28 17:47:59,023 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-10-28 17:48:24,002 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-10-29 17:17:19,858 basehttp 154 "GET /sales HTTP/1.1" 301 0 INFO 2019-10-29 17:17:19,893 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-10-29 17:17:19,955 log 228 Not Found: /favicon.ico WARNING 2019-10-29 17:17:19,956 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 2790 INFO 2019-10-30 08:53:29,962 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-10-30 09:01:13,540 log 228 Forbidden: /sales/ WARNING 2019-10-30 09:01:13,540 basehttp 154 "POST /sales/ HTTP/1.1" 403 51 ERROR 2019-10-30 09:01:22,412 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 82, in post INV_NO,datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'),datetime.datetime.strptime(LZ_DD, '%Y-%m-%d')]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 542, in execute sql = self.format_sql(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 510, in format_sql sql = sql % tuple('?' * len(params)) TypeError: not all arguments converted during string formatting ERROR 2019-10-30 09:01:22,414 basehttp 154 "POST /sales/ HTTP/1.1" 500 117057 ERROR 2019-10-30 09:06:26,281 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 137, in _get_response "returned None instead." % (callback.__module__, view_name) ValueError: The view salesinvoice.views.salesView didn't return an HttpResponse object. It returned None instead. ERROR 2019-10-30 09:06:26,284 basehttp 154 "POST /sales/ HTTP/1.1" 500 61515 ERROR 2019-10-30 09:08:20,019 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 71, in post datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'),AMT]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)") ERROR 2019-10-30 09:08:20,023 basehttp 154 "POST /sales/ HTTP/1.1" 500 133988 WARNING 2019-10-30 09:09:07,909 log 228 Forbidden: /sales/ WARNING 2019-10-30 09:09:07,909 basehttp 154 "POST /sales/ HTTP/1.1" 403 27 INFO 2019-10-30 09:10:51,862 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 09:34:16,513 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 ERROR 2019-10-30 09:40:09,694 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__TF_LZ'。不能在对象 'dbo.TF_LZ' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 90, in post ('LZ',%s,1,%s,%s,%s,'AQ001',1,%s,5,1,1,'SA',1,'服務費用',%s,1,1)""",[ZL_NO, 'SA' + ZL_NO[2::],AMT,AMT,datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'), CUS_NO]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__TF_LZ'。不能在对象 'dbo.TF_LZ' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)") ERROR 2019-10-30 09:40:09,698 basehttp 154 "POST /sales/ HTTP/1.1" 500 133487 INFO 2019-10-30 09:40:39,938 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 09:41:21,053 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 09:45:39,565 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 09:56:47,597 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 09:58:19,521 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 10:01:37,714 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 WARNING 2019-10-30 10:15:39,303 log 228 Forbidden: /sales/ WARNING 2019-10-30 10:15:39,303 basehttp 154 "PUT /sales/ HTTP/1.1" 403 51 INFO 2019-10-30 10:15:47,263 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60 ERROR 2019-10-30 10:26:49,687 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 335, in delete req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-10-30 10:26:49,691 basehttp 154 "DELETE /invoice/?ZL_NO=LZS9A300001&ZHANG_ID=3 HTTP/1.1" 500 97827 WARNING 2019-10-30 10:28:36,918 base 93 Method Not Allowed (DELETE): /sales/ WARNING 2019-10-30 10:28:36,918 log 228 Method Not Allowed: /sales/ WARNING 2019-10-30 10:28:36,918 basehttp 154 "DELETE /sales/ HTTP/1.1" 405 0 WARNING 2019-10-30 10:29:14,406 log 228 Forbidden: /sales/ WARNING 2019-10-30 10:29:14,406 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21 INFO 2019-10-30 10:30:23,997 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 60 INFO 2019-10-30 10:30:57,516 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 60 WARNING 2019-10-30 10:31:36,845 log 228 Forbidden: /sales/ WARNING 2019-10-30 10:31:36,846 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21 WARNING 2019-10-30 10:31:41,341 log 228 Forbidden: /sales/ WARNING 2019-10-30 10:31:41,341 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21 ERROR 2019-10-30 10:32:19,311 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 75, in post datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'),AMT]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)") ERROR 2019-10-30 10:32:19,313 basehttp 154 "POST /sales/ HTTP/1.1" 500 133997 INFO 2019-10-30 10:33:03,845 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 10:33:20,400 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60 INFO 2019-10-30 10:33:29,120 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 INFO 2019-10-30 10:34:34,157 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 10:34:36,603 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60 INFO 2019-10-30 10:34:39,263 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 INFO 2019-10-30 10:34:41,980 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 10:56:56,320 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 WARNING 2019-10-30 10:56:58,661 log 228 Forbidden: /sales/ WARNING 2019-10-30 10:56:58,662 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21 INFO 2019-10-30 10:57:02,371 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 10:57:05,316 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60 INFO 2019-10-30 10:57:08,645 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 WARNING 2019-10-30 10:57:09,693 log 228 Forbidden: /sales/ WARNING 2019-10-30 10:57:09,693 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21 INFO 2019-10-30 11:02:59,771 basehttp 154 "GET /proceeds HTTP/1.1" 301 0 INFO 2019-10-30 11:02:59,783 basehttp 154 "GET /proceeds/ HTTP/1.1" 200 48 WARNING 2019-10-30 11:36:24,589 log 228 Forbidden: /invoice/ WARNING 2019-10-30 11:36:24,590 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 INFO 2019-10-30 11:37:26,909 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 ERROR 2019-10-30 11:46:51,278 log 228 Internal Server Error: /proceeds Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\utils\deprecation.py", line 90, in __call__ response = self.process_request(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\middleware\common.py", line 53, in process_request path = self.get_full_path_with_slash(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\middleware\common.py", line 93, in get_full_path_with_slash 'url': request.get_host() + new_path, RuntimeError: You called this URL via POST, 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 POST data. Change your form to point to 127.0.0.1:8000/proceeds/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings. ERROR 2019-10-30 11:46:51,279 basehttp 154 "POST /proceeds HTTP/1.1" 500 68450 ERROR 2019-10-30 11:47:31,389 log 228 Internal Server Error: /proceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 341, in post row_AMT = cursor.execute("SELECT CAST(ISNULL(AMT,0) AS INT ),BIL_NO FROM MF_ARP WHERE BIL_NO=%s",[MF_LZ1]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-10-30 11:47:31,391 basehttp 154 "POST /proceeds/ HTTP/1.1" 500 85496 INFO 2019-10-30 13:22:08,693 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 13:42:52,852 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 13:48:15,671 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 13:51:34,234 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 13:54:59,562 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 13:58:43,435 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 14:28:41,733 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 14:30:16,253 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 14:30:17,254 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 WARNING 2019-10-30 14:33:00,957 log 228 Forbidden: /proceeds/ WARNING 2019-10-30 14:33:00,958 basehttp 154 "PUT /proceeds/ HTTP/1.1" 403 21 INFO 2019-10-30 14:33:29,952 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 ERROR 2019-10-30 14:44:53,711 log 228 Internal Server Error: /proceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 453, in delete row_AMTN_MF_ARP = cursor.execute("""SELECT AMTN FROM MF_ARP WHERE BIL_NO=%s""", [MF_LZ1]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-10-30 14:44:53,712 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 500 83376 ERROR 2019-10-30 14:45:59,949 log 228 Internal Server Error: /proceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 453, in delete row_AMTN_MF_ARP = cursor.execute("""SELECT AMTN FROM MF_ARP WHERE BIL_NO=%s""", [MF_LZ1]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-10-30 14:45:59,951 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 500 83376 INFO 2019-10-30 14:47:40,695 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51 INFO 2019-10-30 14:48:14,594 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 INFO 2019-10-30 14:48:20,519 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 14:48:27,205 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 14:49:02,467 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 14:49:05,827 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51 INFO 2019-10-30 14:51:28,576 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 INFO 2019-10-30 14:51:31,576 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 14:51:33,701 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 14:51:37,598 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 14:56:00,429 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51 WARNING 2019-10-30 15:01:11,277 log 228 Forbidden: /proceeds/ WARNING 2019-10-30 15:01:11,277 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 403 21 INFO 2019-10-30 15:01:14,914 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 INFO 2019-10-30 15:01:18,717 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 15:01:23,694 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 15:01:27,030 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 15:01:32,025 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51 INFO 2019-10-30 16:11:57,129 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 INFO 2019-10-30 18:00:39,949 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60 ERROR 2019-10-30 18:08:10,643 log 228 Internal Server Error: /predictproceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 626, in delete cursor.execute("""DELETE FROM MF_BAC WHERE BB_NO=%s AND RP_ID='2'""", ['BT' + RP_NO[2::]]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-10-30 18:08:10,646 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 500 125242 ERROR 2019-10-30 18:08:34,925 log 228 Internal Server Error: /predictproceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 626, in delete cursor.execute("""DELETE FROM MF_BAC WHERE BB_NO=%s AND RP_ID='2'""", ['BT' + RP_NO[2::]]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-10-30 18:08:34,928 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 500 125223 INFO 2019-10-30 18:09:15,961 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 INFO 2019-10-30 18:17:25,623 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63 INFO 2019-10-30 18:21:25,330 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 INFO 2019-10-30 18:21:37,718 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60 INFO 2019-10-30 18:21:49,575 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63 INFO 2019-10-30 18:46:52,323 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:49:24,957 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:52:07,282 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:54:11,644 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:54:19,095 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:55:30,664 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:56:07,419 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:56:39,652 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 WARNING 2019-10-30 18:56:57,110 log 228 Forbidden: /predictproceeds/ WARNING 2019-10-30 18:56:57,110 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21 INFO 2019-10-30 18:57:26,353 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:57:44,762 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:58:17,613 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:58:46,677 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 WARNING 2019-10-30 18:59:32,970 log 228 Forbidden: /predictproceeds/ WARNING 2019-10-30 18:59:32,971 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21 ERROR 2019-10-30 19:03:56,102 log 228 Internal Server Error: /predictproceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 19, in inner print(name) NameError: name 'name' is not defined ERROR 2019-10-30 19:03:56,103 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 500 58158 INFO 2019-10-30 19:04:16,724 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 WARNING 2019-10-30 19:04:51,537 log 228 Forbidden: /predictproceeds/ WARNING 2019-10-30 19:04:51,537 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21 WARNING 2019-10-30 19:05:54,675 log 228 Forbidden: /predictproceeds/ WARNING 2019-10-30 19:05:54,676 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21 WARNING 2019-10-31 11:07:56,865 log 228 Forbidden: /predictproceeds/ WARNING 2019-10-31 11:07:56,866 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21 INFO 2019-10-31 11:08:37,578 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-31 11:29:48,607 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 INFO 2019-10-31 11:34:16,468 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-31 11:34:38,641 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 ERROR 2019-10-31 11:36:32,992 log 228 Internal Server Error: /predictproceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 512, in post row_usr = usr_data(USR, USR_NAME, datetime.datetime.strptime(RP_DD, '%Y-%m-%d')) TypeError: strptime() argument 1 must be str, not None ERROR 2019-10-31 11:36:32,995 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 83363 ERROR 2019-10-31 11:39:07,545 log 228 Internal Server Error: /predictpayment/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 702, in post yf_sum =round(yf_sum + cursor.execute("""SELECT AMTN FROM MF_ARP WHERE BIL_NO=%s""", [i["DH"]]).fetchall()[0][0], 4) IndexError: list index out of range ERROR 2019-10-31 11:39:07,548 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 84378 INFO 2019-10-31 13:14:18,613 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55 ERROR 2019-10-31 13:19:29,067 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 225, in delete if int(ZHANG_ID) != 1 and int(ZHANG_ID) != 2: TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' ERROR 2019-10-31 13:19:29,069 basehttp 154 "DELETE /sales/ HTTP/1.1" 500 82324 WARNING 2019-10-31 13:21:26,048 log 228 Forbidden: /sales/ WARNING 2019-10-31 13:21:26,049 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21 ERROR 2019-10-31 13:21:45,155 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 230, in delete row_TC_MON = examine_ood('TC_MON', 'RP_NO', 'AR' + ZL_NO[2::], 'RP_ID', '1') TypeError: 'NoneType' object is not subscriptable ERROR 2019-10-31 13:21:45,157 basehttp 154 "DELETE /sales/ HTTP/1.1" 500 82315 INFO 2019-10-31 13:24:53,745 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-31 13:25:03,975 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-31 13:25:22,981 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55 INFO 2019-10-31 13:26:44,203 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55 WARNING 2019-10-31 13:40:15,886 log 228 Forbidden: /predictpayment/ WARNING 2019-10-31 13:40:15,888 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 18 INFO 2019-10-31 13:40:40,334 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54 ERROR 2019-10-31 13:54:42,877 log 228 Internal Server Error: /predictpayment/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'RP_ID' 附近有语法错误。 (102) (SQLExecDirectW); [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 891, in delete cursor.execute("""DELETE FROM TF_MON1 WHERE RP_NO=%s RP_ID='1'""", [RP_NO]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'RP_ID' 附近有语法错误。 (102) (SQLExecDirectW); [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-10-31 13:54:42,882 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 500 127177 INFO 2019-10-31 13:58:39,440 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 200 57 INFO 2019-10-31 13:59:16,898 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55 INFO 2019-10-31 13:59:30,475 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54 INFO 2019-10-31 13:59:47,133 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 200 57 WARNING 2019-11-01 13:19:01,710 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:19:01,815 basehttp 154 "POST /sales/ HTTP/1.1" 403 77 INFO 2019-11-01 13:19:18,508 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 WARNING 2019-11-01 13:20:50,209 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:20:50,209 basehttp 154 "POST /sales/ HTTP/1.1" 403 27 WARNING 2019-11-01 13:21:24,074 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:21:24,074 basehttp 154 "POST /sales/ HTTP/1.1" 403 27 WARNING 2019-11-01 13:22:01,120 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:22:01,121 basehttp 154 "POST /sales/ HTTP/1.1" 403 77 WARNING 2019-11-01 13:23:02,571 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:23:02,571 basehttp 154 "POST /sales/ HTTP/1.1" 403 21 WARNING 2019-11-01 13:23:15,243 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:23:15,243 basehttp 154 "POST /sales/ HTTP/1.1" 403 27 INFO 2019-11-01 13:23:27,865 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 WARNING 2019-11-01 13:31:04,968 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:31:04,968 basehttp 154 "PUT /sales/ HTTP/1.1" 403 45 INFO 2019-11-01 13:32:14,626 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60 ERROR 2019-11-01 13:33:57,082 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 182, in put if re.compile('(^-?[0-9](\d+)?(\.\d{1,6})?$)|(^0$)|(^\d\.\d{1,2}$)').match(AMT) is None: TypeError: expected string or bytes-like object ERROR 2019-11-01 13:33:57,084 basehttp 154 "PUT /sales/ HTTP/1.1" 500 85230 ERROR 2019-11-01 13:34:35,913 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 182, in put if re.compile('(^-?[0-9](\d+)?(\.\d{1,6})?$)|(^0$)|(^\d\.\d{1,2}$)').match(AMT) is None: TypeError: expected string or bytes-like object ERROR 2019-11-01 13:34:35,971 basehttp 154 "PUT /sales/ HTTP/1.1" 500 85229 WARNING 2019-11-01 13:36:30,555 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:36:30,556 basehttp 154 "PUT /sales/ HTTP/1.1" 403 51 WARNING 2019-11-01 13:36:54,761 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:36:54,761 basehttp 154 "PUT /sales/ HTTP/1.1" 403 51 INFO 2019-11-01 13:43:51,173 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 INFO 2019-11-01 13:49:22,907 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 WARNING 2019-11-01 14:11:30,593 log 228 Forbidden: /proceeds/ WARNING 2019-11-01 14:11:30,594 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77 WARNING 2019-11-01 14:11:39,487 log 228 Forbidden: /proceeds/ WARNING 2019-11-01 14:11:39,488 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77 WARNING 2019-11-01 14:11:49,961 log 228 Forbidden: /proceeds/ WARNING 2019-11-01 14:11:49,962 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77 WARNING 2019-11-01 14:12:55,961 log 228 Forbidden: /proceeds/ WARNING 2019-11-01 14:12:55,962 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77 WARNING 2019-11-01 14:13:08,152 log 228 Forbidden: /proceeds/ WARNING 2019-11-01 14:13:08,153 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 21 INFO 2019-11-01 14:13:13,947 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 ERROR 2019-11-01 14:25:21,711 log 228 Internal Server Error: /proceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 403, in put req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 4 column 17 (char 73) ERROR 2019-11-01 14:25:21,714 basehttp 154 "PUT /proceeds/ HTTP/1.1" 500 94811 WARNING 2019-11-01 14:26:31,795 log 228 Forbidden: /proceeds/ WARNING 2019-11-01 14:26:31,795 basehttp 154 "PUT /proceeds/ HTTP/1.1" 403 21 ERROR 2019-11-01 14:26:55,614 log 228 Internal Server Error: /proceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 403, in put req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 4 column 17 (char 73) ERROR 2019-11-01 14:26:55,616 basehttp 154 "PUT /proceeds/ HTTP/1.1" 500 94808 WARNING 2019-11-01 14:27:03,962 log 228 Forbidden: /proceeds/ WARNING 2019-11-01 14:27:03,963 basehttp 154 "PUT /proceeds/ HTTP/1.1" 403 21 INFO 2019-11-01 14:29:09,194 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 INFO 2019-11-01 14:34:53,249 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51 WARNING 2019-11-01 14:49:17,092 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 14:49:17,093 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81 WARNING 2019-11-01 14:49:24,441 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 14:49:24,441 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81 WARNING 2019-11-01 14:49:58,609 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 14:49:58,610 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81 WARNING 2019-11-01 14:50:23,437 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 14:50:23,437 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81 WARNING 2019-11-01 14:50:40,875 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 14:50:40,876 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 21 INFO 2019-11-01 14:51:20,192 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 WARNING 2019-11-01 15:22:53,636 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 15:22:53,636 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 403 81 WARNING 2019-11-01 15:23:04,357 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 15:23:04,358 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 403 81 WARNING 2019-11-01 15:23:12,163 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 15:23:12,164 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 403 21 INFO 2019-11-01 15:23:16,541 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60 INFO 2019-11-01 15:23:30,904 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60 INFO 2019-11-01 15:33:26,037 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63 INFO 2019-11-01 15:34:24,768 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 INFO 2019-11-01 15:34:43,307 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63 INFO 2019-11-01 15:35:49,807 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 WARNING 2019-11-01 16:04:28,431 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:04:28,432 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 81 WARNING 2019-11-01 16:23:08,201 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:23:08,202 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 78 WARNING 2019-11-01 16:23:54,853 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:23:54,854 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77 WARNING 2019-11-01 16:24:53,507 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:24:53,507 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 24 ERROR 2019-11-01 16:25:57,326 log 228 Internal Server Error: /predictpayment/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 760, in post req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 9 column 19 (char 200) ERROR 2019-11-01 16:25:57,329 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 95999 WARNING 2019-11-01 16:26:14,247 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:26:14,247 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 24 WARNING 2019-11-01 16:27:08,761 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:27:08,761 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 24 ERROR 2019-11-01 16:27:36,380 log 228 Internal Server Error: /predictpayment/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 811, in post sum_ATM = round(sum_ATM + i["ATM"], 4) TypeError: unsupported operand type(s) for +: 'int' and 'str' ERROR 2019-11-01 16:27:36,380 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 84315 WARNING 2019-11-01 16:28:56,052 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:28:56,052 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 21 WARNING 2019-11-01 16:29:36,517 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:29:36,517 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77 WARNING 2019-11-01 16:29:51,042 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:29:51,042 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77 INFO 2019-11-01 16:31:22,212 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 WARNING 2019-11-01 16:31:48,381 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:31:48,381 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77 WARNING 2019-11-01 16:32:48,505 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:32:48,506 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77 WARNING 2019-11-01 16:33:19,688 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:33:19,688 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77 ERROR 2019-11-01 16:34:02,695 log 228 Internal Server Error: /predictpayment/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 818, in post sum_ATM = round(sum_ATM + i["ATM"], 4) TypeError: unsupported operand type(s) for +: 'int' and 'str' ERROR 2019-11-01 16:34:02,698 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 84445 INFO 2019-11-01 16:34:47,995 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55 WARNING 2019-11-01 16:45:10,035 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:45:10,036 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 78 WARNING 2019-11-01 16:45:26,850 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:45:26,851 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 24 WARNING 2019-11-01 16:45:33,334 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:45:33,334 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 21 WARNING 2019-11-01 16:45:38,530 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:45:38,530 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 77 INFO 2019-11-01 16:45:52,084 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54 INFO 2019-11-01 16:56:10,281 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 200 57 INFO 2019-11-01 16:56:39,119 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55 INFO 2019-11-01 16:56:42,481 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54 INFO 2019-11-01 17:08:00,063 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 INFO 2019-11-01 17:09:56,722 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-11-03 09:31:11,225 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-11-03 09:33:59,721 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:33:59,722 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77 WARNING 2019-11-03 09:35:05,095 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:35:05,095 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77 WARNING 2019-11-03 09:35:20,688 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:35:20,689 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77 WARNING 2019-11-03 09:35:52,639 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:35:52,640 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77 INFO 2019-11-03 09:36:15,440 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-11-03 09:36:19,691 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:36:19,691 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-11-03 09:36:30,801 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:36:30,802 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-11-03 09:40:34,660 log 228 Forbidden: /predictpayment/ WARNING 2019-11-03 09:40:34,661 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 21 WARNING 2019-11-03 09:44:21,215 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:44:21,215 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 77 WARNING 2019-11-03 09:44:32,753 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:44:32,753 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 51 INFO 2019-11-03 09:44:40,144 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24 INFO 2019-11-03 09:51:45,857 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-11-03 09:52:28,758 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 WARNING 2019-11-03 09:56:09,368 log 228 Forbidden: /paymentoperation/ WARNING 2019-11-03 09:56:09,368 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 77 WARNING 2019-11-03 09:56:30,717 log 228 Forbidden: /paymentoperation/ WARNING 2019-11-03 09:56:30,717 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21 WARNING 2019-11-03 09:56:42,839 log 228 Forbidden: /paymentoperation/ WARNING 2019-11-03 09:56:42,839 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21 WARNING 2019-11-03 10:09:35,938 log 228 Forbidden: /paymentoperation/ WARNING 2019-11-03 10:09:35,939 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21 INFO 2019-11-03 10:10:05,544 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-11-03 10:10:38,281 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-11-03 10:14:17,182 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-11-03 10:14:21,515 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-11-03 10:16:01,412 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-11-03 10:16:40,654 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-11-03 10:16:44,598 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 WARNING 2019-11-03 10:27:20,335 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-03 10:27:20,335 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 81 WARNING 2019-11-03 10:27:37,242 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-03 10:27:37,243 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 21 INFO 2019-11-03 10:27:42,844 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 WARNING 2019-11-03 10:32:17,179 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-03 10:32:17,179 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24 INFO 2019-11-03 10:32:21,650 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 INFO 2019-11-03 10:48:13,967 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 WARNING 2019-11-03 10:49:09,912 log 228 Forbidden: /expectedptoperation/ WARNING 2019-11-03 10:49:09,912 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 78 WARNING 2019-11-03 10:49:19,047 log 228 Forbidden: /expectedptoperation/ WARNING 2019-11-03 10:49:19,048 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 78 WARNING 2019-11-03 10:53:16,383 log 228 Forbidden: /invoice/ WARNING 2019-11-03 10:53:16,383 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 INFO 2019-11-03 10:53:23,953 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-11-03 10:55:32,096 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 WARNING 2019-11-03 10:56:30,153 log 228 Forbidden: /expectedptoperation/ WARNING 2019-11-03 10:56:30,154 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 78 WARNING 2019-11-03 10:56:50,449 log 228 Forbidden: /expectedptoperation/ WARNING 2019-11-03 10:56:50,449 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 21 WARNING 2019-11-03 10:57:13,811 log 228 Forbidden: /expectedptoperation/ WARNING 2019-11-03 10:57:13,811 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 21 INFO 2019-11-03 10:58:47,136 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 200 55 INFO 2019-11-03 10:59:54,774 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 200 55 INFO 2019-11-03 11:07:29,842 basehttp 154 "GET /sales HTTP/1.1" 301 0 INFO 2019-11-03 11:07:29,865 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:07:29,914 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:07:29,915 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3280 ERROR 2019-11-03 11:09:07,485 exception 77 Invalid HTTP_HOST header: '192.168.137.1:8000'. You may need to add '192.168.137.1' to ALLOWED_HOSTS. WARNING 2019-11-03 11:09:07,524 log 228 Bad Request: /sales/ WARNING 2019-11-03 11:09:07,525 basehttp 154 "GET /sales/ HTTP/1.1" 400 66679 ERROR 2019-11-03 11:09:07,706 exception 77 Invalid HTTP_HOST header: '192.168.137.1:8000'. You may need to add '192.168.137.1' to ALLOWED_HOSTS. WARNING 2019-11-03 11:09:07,742 log 228 Bad Request: /favicon.ico WARNING 2019-11-03 11:09:07,742 basehttp 154 "GET /favicon.ico HTTP/1.1" 400 66668 INFO 2019-11-03 11:12:55,385 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:12:55,413 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:12:55,413 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3284 WARNING 2019-11-03 11:13:36,096 log 228 Not Found: / WARNING 2019-11-03 11:13:36,096 basehttp 154 "GET / HTTP/1.1" 404 3234 WARNING 2019-11-03 11:13:53,887 log 228 Not Found: //sales/ WARNING 2019-11-03 11:13:53,888 basehttp 154 "GET //sales/ HTTP/1.1" 404 3273 WARNING 2019-11-03 11:13:54,057 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:13:54,058 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:14:00,119 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-03 11:15:08,274 basehttp 154 "GET /sales HTTP/1.1" 301 0 INFO 2019-11-03 11:15:08,485 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-03 11:15:34,578 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:15:34,750 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:15:34,751 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:15:43,992 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:15:44,662 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:15:44,663 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:15:46,578 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:15:46,910 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:15:46,911 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:15:52,647 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:15:58,776 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:15:58,776 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:16:00,367 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:16:03,144 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:16:03,144 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:16:04,835 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:16:05,110 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:16:05,111 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:18:35,084 basehttp 154 "GET /sales/ HTTP/1.0" 200 54 WARNING 2019-11-03 11:18:38,541 log 228 Not Found: / WARNING 2019-11-03 11:18:38,542 basehttp 154 "GET / HTTP/1.0" 404 3234 INFO 2019-11-03 11:19:31,881 basehttp 154 "GET /invoice/ HTTP/1.0" 200 10 INFO 2019-11-03 11:20:32,044 basehttp 154 "GET /invoice HTTP/1.1" 301 0 WARNING 2019-11-03 11:20:41,040 log 228 Not Found: / WARNING 2019-11-03 11:20:41,041 basehttp 154 "HEAD / HTTP/1.1" 404 3235 WARNING 2019-11-03 11:21:39,260 log 228 Not Found: / WARNING 2019-11-03 11:21:39,260 basehttp 154 "HEAD / HTTP/1.1" 404 3235 INFO 2019-11-03 11:29:33,529 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:29:33,903 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:29:33,903 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:29:41,481 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-05 21:33:18,500 basehttp 154 "GET /predictpayment HTTP/1.1" 301 0 INFO 2019-11-05 21:33:20,080 basehttp 154 "GET /predictpayment/ HTTP/1.1" 200 54 WARNING 2019-11-05 21:33:20,108 log 228 Not Found: /favicon.ico WARNING 2019-11-05 21:33:20,109 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3284 INFO 2019-11-05 21:47:09,730 basehttp 154 "GET /predictpayment/ HTTP/1.1" 200 54 INFO 2019-11-05 23:00:01,830 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-05 23:00:01,930 log 228 Not Found: /favicon.ico WARNING 2019-11-05 23:00:01,930 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3280 INFO 2019-11-08 09:33:38,919 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:33:49,455 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:34:47,820 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:35:01,386 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:35:27,500 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:37:33,632 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:39:12,188 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\setting\dev.py changed, reloading. INFO 2019-11-08 09:39:12,927 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:39:19,867 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\setting\dev.py changed, reloading. INFO 2019-11-08 09:39:20,619 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:39:21,033 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:40:28,193 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\setting\dev.py changed, reloading. INFO 2019-11-08 09:40:28,892 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:40:38,901 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:40:47,636 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-09 16:06:19,043 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-09 16:06:58,214 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-09 16:14:47,264 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\urls.py changed, reloading. INFO 2019-11-09 16:14:47,923 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-09 16:19:18,966 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\urls.py changed, reloading. INFO 2019-11-09 16:19:19,699 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-11 16:16:41,670 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-11 16:17:01,982 log 228 Not Found: /favicon.ico WARNING 2019-11-11 16:17:01,982 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 77 INFO 2019-11-11 16:17:09,641 basehttp 154 "GET /sales HTTP/1.1" 301 0 INFO 2019-11-11 16:17:09,666 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-11 16:17:09,922 log 228 Not Found: /favicon.ico WARNING 2019-11-11 16:17:09,924 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 77 INFO 2019-11-11 16:17:14,643 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-11 16:32:32,833 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-11 16:32:33,757 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-11 16:33:46,402 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-11 16:33:47,295 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-11 16:37:45,902 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-11 16:37:47,798 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:37:47,902 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 ERROR 2019-11-11 16:37:57,001 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:37:57,002 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 ERROR 2019-11-11 16:38:00,350 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:38:00,350 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 INFO 2019-11-11 16:38:21,714 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-11 16:38:25,235 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:38:25,238 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 ERROR 2019-11-11 16:38:47,178 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:38:47,179 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 WARNING 2019-11-11 16:38:47,252 log 228 Not Found: /favicon.ico WARNING 2019-11-11 16:38:47,253 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 77 INFO 2019-11-11 16:39:02,780 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-11 16:39:05,535 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:39:05,536 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 ERROR 2019-11-11 16:39:06,768 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:39:06,769 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 ERROR 2019-11-11 16:39:08,320 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:39:08,320 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 INFO 2019-11-11 16:39:28,518 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-11 16:39:30,999 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:40:17,795 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 14:40:34,826 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:40:34,959 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 ERROR 2019-11-12 14:40:34,991 log 228 Internal Server Error: /favicon.ico Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:40:34,992 basehttp 154 "GET /favicon.ico HTTP/1.1" 500 27 INFO 2019-11-12 14:41:55,920 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 14:41:59,326 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:41:59,327 basehttp 154 "GET /sales/ HTTP/1.1" 500 73496 ERROR 2019-11-12 14:41:59,575 log 228 Internal Server Error: /favicon.ico Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:41:59,577 basehttp 154 "GET /favicon.ico HTTP/1.1" 500 73597 INFO 2019-11-12 14:44:10,525 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 14:44:14,891 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:44:14,892 basehttp 154 "GET /sales/ HTTP/1.1" 500 73537 ERROR 2019-11-12 14:44:15,024 log 228 Internal Server Error: /favicon.ico Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:44:15,025 basehttp 154 "GET /favicon.ico HTTP/1.1" 500 73638 INFO 2019-11-12 14:44:44,179 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:44:45,988 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-12 14:44:46,053 log 228 Not Found: /favicon.ico WARNING 2019-11-12 14:44:46,054 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3280 INFO 2019-11-12 14:45:20,751 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 14:45:21,715 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:46:22,467 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:46:37,151 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:47:12,111 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:47:14,473 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:47:29,166 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:47:31,456 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:47:51,244 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:47:53,102 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:48:18,072 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:48:21,911 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:48:41,055 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:48:43,306 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:50:12,409 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 14:50:13,187 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 14:50:55,463 log 228 Forbidden: /sales/ WARNING 2019-11-12 14:50:55,464 basehttp 154 "GET /sales/ HTTP/1.1" 403 27 INFO 2019-11-12 14:52:22,141 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 14:52:23,594 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:52:51,587 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:54:17,547 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 14:54:18,321 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:56:21,151 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 14:56:22,161 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:56:34,244 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 14:57:09,461 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 11, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:57:09,463 basehttp 154 "POST /invoice/ HTTP/1.1" 500 88452 INFO 2019-11-12 14:58:18,482 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 14:58:21,405 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 12, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:58:21,408 basehttp 154 "POST /invoice/ HTTP/1.1" 500 88493 INFO 2019-11-12 15:00:00,823 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 15:00:03,448 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 13, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 15:00:03,449 basehttp 154 "POST /invoice/ HTTP/1.1" 500 88529 INFO 2019-11-12 15:00:47,374 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 15:00:56,262 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:00:57,943 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 ERROR 2019-11-12 15:01:50,029 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post print(ZL_NO[:3]) TypeError: 'NoneType' object is not subscriptable ERROR 2019-11-12 15:01:50,036 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293 INFO 2019-11-12 15:01:58,863 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 15:02:02,319 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post print(ZL_NO[:3]) TypeError: 'NoneType' object is not subscriptable ERROR 2019-11-12 15:02:02,320 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293 INFO 2019-11-12 15:02:57,081 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 15:03:01,095 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post print(ZL_NO[:3]) TypeError: 'NoneType' object is not subscriptable ERROR 2019-11-12 15:03:01,097 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293 INFO 2019-11-12 15:03:57,379 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 15:04:00,651 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 14, in inner user = req_data.get("user") # 用户名 AttributeError: 'str' object has no attribute 'get' ERROR 2019-11-12 15:04:00,655 basehttp 154 "POST /invoice/ HTTP/1.1" 500 58094 INFO 2019-11-12 15:04:57,318 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 15:05:00,700 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 14, in inner user = req_data.get("user") # 用户名 AttributeError: 'str' object has no attribute 'get' ERROR 2019-11-12 15:05:00,701 basehttp 154 "GET /sales/ HTTP/1.1" 500 58071 INFO 2019-11-12 15:05:14,607 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:05:16,907 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 ERROR 2019-11-12 15:05:58,700 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post print(ZL_NO[:3]) TypeError: 'NoneType' object is not subscriptable ERROR 2019-11-12 15:05:58,701 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293 INFO 2019-11-12 15:06:40,324 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 15:06:43,978 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 71, in post if ZL_NO[:3] != 'LPF' or len(ZL_NO) != 10: TypeError: 'NoneType' object is not subscriptable ERROR 2019-11-12 15:06:43,980 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84325 INFO 2019-11-12 15:06:56,069 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py changed, reloading. INFO 2019-11-12 15:06:57,864 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:08:48,355 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:09:09,420 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:09:09,421 basehttp 154 "POST /invoice/ HTTP/1.1" 403 16 INFO 2019-11-12 15:10:23,366 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 15:10:24,156 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:11:13,161 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:11:16,082 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:11:16,083 basehttp 154 "POST /invoice/ HTTP/1.1" 403 27 INFO 2019-11-12 15:12:53,101 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 15:12:53,904 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:13:17,786 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:13:26,023 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:13:26,024 basehttp 154 "POST /invoice/ HTTP/1.1" 403 27 INFO 2019-11-12 15:14:16,843 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:14:19,319 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:14:19,320 basehttp 154 "POST /invoice/ HTTP/1.1" 403 27 INFO 2019-11-12 15:15:41,239 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:15:44,018 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:15:44,018 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-11-12 15:15:52,636 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:15:52,638 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-11-12 15:16:08,616 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:16:08,616 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-11-12 15:16:21,275 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:16:21,276 basehttp 154 "POST /invoice/ HTTP/1.1" 403 18 INFO 2019-11-12 15:17:29,140 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:17:51,169 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-11-12 15:18:49,024 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:18:49,025 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 WARNING 2019-11-12 15:19:43,121 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:19:43,121 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 INFO 2019-11-12 15:20:26,760 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:20:29,834 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:20:29,835 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 15 WARNING 2019-11-12 15:20:49,384 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:20:49,384 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 INFO 2019-11-12 15:21:19,639 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-11-12 15:22:23,031 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 15:22:24,106 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:37:34,924 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:38:19,360 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:38:19,361 basehttp 154 "POST /invoice/ HTTP/1.1" 403 2868 INFO 2019-11-12 15:38:59,231 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:39:03,593 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-11-12 15:39:12,325 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:39:15,126 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:39:15,128 basehttp 154 "POST /invoice/ HTTP/1.1" 403 2868 WARNING 2019-11-12 15:40:51,787 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:40:51,787 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 18 WARNING 2019-11-12 15:41:12,896 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:41:12,896 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868 WARNING 2019-11-12 15:44:11,969 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:44:11,969 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868 WARNING 2019-11-12 15:50:04,312 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:50:04,313 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868 INFO 2019-11-12 15:50:17,119 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:53:05,171 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:53:05,172 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868 WARNING 2019-11-12 15:53:44,032 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:53:44,033 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868 INFO 2019-11-12 15:54:05,117 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:54:30,324 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:54:30,325 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868 INFO 2019-11-12 16:19:49,910 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 16:20:27,691 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 16:22:12,626 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 16:22:12,627 basehttp 154 "POST /invoice/ HTTP/1.1" 403 2868 INFO 2019-11-12 16:22:39,263 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 16:23:05,093 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 16:23:21,755 log 228 Forbidden: /invoice/ WARNING 2019-11-12 16:23:21,755 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 INFO 2019-11-12 16:24:40,820 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 INFO 2019-11-12 16:44:35,511 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 ERROR 2019-11-12 16:44:51,952 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CHK_MAN' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CLS_DATE' 无效。 (207); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 395, in post row_usr = usr_data(USR, USR_NAME, datetime.datetime.strptime(RP_DD, '%Y-%m-%d')) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\usr_data.py", line 13, in usr_data cursor.execute("INSERT INTO SALM(SAL_NO,[NAME],USR,CHK_MAN,CLS_DATE,SYS_DATE)VALUES (%s,%s,'ADMIN','ADMIN',%s,%s)", [USR, USR_NAME,DATE,DATE]) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CHK_MAN' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CLS_DATE' 无效。 (207); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-11-12 16:44:51,956 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 133940 INFO 2019-11-12 16:48:07,723 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\usr_data.py changed, reloading. INFO 2019-11-12 16:48:08,489 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 16:49:09,677 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 16:49:14,521 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 INFO 2019-11-12 16:51:02,232 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 17:01:00,950 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-12 17:01:01,942 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 17:05:43,200 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-12 17:05:44,417 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 17:06:24,227 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-12 17:06:25,264 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 17:09:35,337 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-12 17:09:36,256 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 17:10:12,277 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-12 17:10:13,064 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 17:11:18,793 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 17:13:01,256 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 17:13:04,170 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-12 17:13:04,171 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24 WARNING 2019-11-12 17:13:11,723 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-12 17:13:11,725 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 21 INFO 2019-11-13 09:19:57,023 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 09:21:04,056 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:21:04,056 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 30 ERROR 2019-11-13 09:21:16,725 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 388, in post sum_CACC_NO=et_CACC_NO(CACC_NO) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py", line 21, in et_CACC_NO SUM_CACC_NO = cursor.execute(sql).fetchall()[0][0] File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") ERROR 2019-11-13 09:21:16,728 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 129920 INFO 2019-11-13 09:22:20,447 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:22:24,316 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 388, in post sum_CACC_NO=et_CACC_NO(CACC_NO) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py", line 22, in et_CACC_NO SUM_CACC_NO = cursor.execute(sql).fetchall()[0][0] File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") ERROR 2019-11-13 09:22:24,319 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 129926 WARNING 2019-11-13 09:22:54,159 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:22:54,160 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 30 INFO 2019-11-13 09:23:11,800 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py changed, reloading. INFO 2019-11-13 09:23:12,555 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 09:23:18,851 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 09:23:21,004 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:23:21,004 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 30 ERROR 2019-11-13 09:23:29,487 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 388, in post sum_CACC_NO=et_CACC_NO(CACC_NO) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py", line 22, in et_CACC_NO SUM_CACC_NO = cursor.execute(sql).fetchall()[0][0] File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") ERROR 2019-11-13 09:23:29,490 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 129912 INFO 2019-11-13 09:23:58,046 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:24:00,932 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 389, in post if sum_CACC_NO <=0: TypeError: '<=' not supported between instances of 'HttpResponseForbidden' and 'int' ERROR 2019-11-13 09:24:00,933 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 85820 INFO 2019-11-13 09:26:39,132 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:26:56,637 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:26:56,641 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86319 INFO 2019-11-13 09:28:39,553 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:28:42,917 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:28:42,918 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:29:10,905 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:29:15,364 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:29:15,365 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:32:18,835 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:32:22,715 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:32:22,717 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:34:12,207 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:34:15,270 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 408, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:34:15,272 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:34:43,791 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:34:48,049 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:34:48,050 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:35:15,342 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:35:18,687 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:35:18,689 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:35:41,580 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:35:45,021 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:35:45,024 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:36:21,091 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:36:25,861 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:36:25,862 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:37:08,687 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:37:12,871 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:37:12,872 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86462 INFO 2019-11-13 09:37:32,747 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 09:37:36,237 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:37:36,237 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24 INFO 2019-11-13 09:38:12,641 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 09:38:13,462 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 09:38:22,592 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:38:22,592 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24 INFO 2019-11-13 09:39:04,964 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 09:39:05,745 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 09:39:17,523 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py changed, reloading. INFO 2019-11-13 09:39:18,229 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 09:39:25,431 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 09:39:26,303 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 09:39:26,970 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 09:39:31,533 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:39:34,146 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 408, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:39:34,149 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86520 INFO 2019-11-13 09:40:22,867 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 09:40:23,643 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 09:40:37,698 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py changed, reloading. INFO 2019-11-13 09:40:38,412 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 09:40:43,633 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:40:43,633 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 57 WARNING 2019-11-13 09:40:50,145 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:40:50,146 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 57 WARNING 2019-11-13 09:40:53,502 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:40:53,502 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 57 INFO 2019-11-13 09:48:22,677 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 09:48:23,417 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 10:53:55,658 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:19:53,545 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 17:20:02,164 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-13 17:20:02,165 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 18 ERROR 2019-11-13 17:21:00,492 log 228 Internal Server Error: /predictproceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 577, in post tp_CACC_NO = if_account(CACC_NO) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\if_account.py", line 16, in if_account IF_CACC_NO = cursor.execute(sql).fetchall()[0][0] File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") ERROR 2019-11-13 17:21:00,496 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 130318 INFO 2019-11-13 17:22:14,700 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 17:22:20,255 log 228 Internal Server Error: /predictproceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 577, in post tp_CACC_NO = if_account(CACC_NO) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\if_account.py", line 16, in if_account IF_CACC_NO = cursor.execute(sql).fetchall()[0][0] File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") ERROR 2019-11-13 17:22:20,257 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 130295 INFO 2019-11-13 17:23:09,092 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 17:23:11,442 log 228 Internal Server Error: /predictproceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 577, in post tp_CACC_NO = if_account(CACC_NO) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\if_account.py", line 16, in if_account IF_CACC_NO = cursor.execute(sql).fetchall()[0][0] File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") ERROR 2019-11-13 17:23:11,445 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 130319 INFO 2019-11-13 17:23:34,892 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 17:23:38,103 log 228 Internal Server Error: /predictproceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 578, in post tp_CACC_NO = if_account(CACC_NO) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\if_account.py", line 16, in if_account IF_CACC_NO = cursor.execute(sql).fetchall()[0][0] File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") ERROR 2019-11-13 17:23:38,107 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 130219 INFO 2019-11-13 17:24:38,806 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:24:49,548 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 WARNING 2019-11-13 17:24:55,731 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-13 17:24:55,732 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 24 WARNING 2019-11-13 17:25:36,526 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-13 17:25:36,526 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 24 INFO 2019-11-13 17:26:25,765 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:26:26,629 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 17:26:33,797 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-13 17:26:33,798 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 24 INFO 2019-11-13 17:27:04,469 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 17:27:06,577 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-13 17:27:06,578 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 24 INFO 2019-11-13 17:27:29,820 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 17:27:43,234 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-13 17:27:43,234 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 24 INFO 2019-11-13 17:28:10,919 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 17:28:12,759 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-13 17:28:12,760 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 24 INFO 2019-11-13 17:28:42,761 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 17:28:44,046 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-13 17:28:44,046 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 6 INFO 2019-11-13 17:29:46,435 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 17:29:52,343 log 228 Internal Server Error: /predictproceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 577, in post tp_CACC_NO = if_account(CACC_NO) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\if_account.py", line 16, in if_account IF_CACC_NO = cursor.execute(sql).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 17:29:52,345 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 89037 INFO 2019-11-13 17:32:06,930 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 17:32:09,457 log 228 Internal Server Error: /predictproceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 579, in post if int(tp_CACC_NO) == 1: TypeError: int() argument must be a string, a bytes-like object or a number, not 'HttpResponseForbidden' ERROR 2019-11-13 17:32:09,458 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 85490 INFO 2019-11-13 17:35:00,403 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:35:01,384 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:35:19,514 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 17:35:21,533 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-13 17:35:21,533 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 36 INFO 2019-11-13 17:36:40,343 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 17:36:43,378 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-13 17:36:43,378 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 57 INFO 2019-11-13 17:38:25,760 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:38:26,506 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:39:50,385 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:39:51,280 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:42:52,983 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:42:53,749 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:43:58,637 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:43:59,349 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 17:45:06,136 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-13 17:45:06,136 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 24 WARNING 2019-11-13 17:45:11,257 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-13 17:45:11,257 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 12 INFO 2019-11-13 17:45:49,168 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 17:45:53,473 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-13 17:45:53,474 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 27 INFO 2019-11-13 17:46:13,982 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 INFO 2019-11-13 17:49:35,596 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:49:36,369 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:50:46,707 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:50:47,431 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:52:12,947 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:52:13,978 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:52:48,112 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:52:48,861 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:54:11,935 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:54:12,647 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:55:46,458 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:55:47,243 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:57:12,582 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:57:13,413 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:57:32,256 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:57:33,114 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:57:48,577 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:57:49,452 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:58:55,373 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:58:56,277 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:59:23,235 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:59:23,984 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 17:59:53,278 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 17:59:54,100 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:00:08,283 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 18:00:09,221 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:00:39,483 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 18:00:40,291 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:04:22,766 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:04:23,514 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:06:24,285 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:06:25,056 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:06:35,952 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:06:36,655 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:07:19,648 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:07:20,475 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:07:46,318 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:07:47,099 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:08:48,876 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:08:49,649 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:08:56,934 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:08:57,697 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:09:03,832 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:09:04,820 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:09:47,769 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:09:48,526 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:10:12,006 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:10:12,793 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:11:27,584 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:11:28,289 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:11:35,643 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:11:36,433 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:11:41,513 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:11:42,389 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:12:21,027 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:12:21,826 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:14:26,644 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:14:27,347 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:14:57,842 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:14:58,712 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:15:15,229 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 18:15:15,943 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:42:32,705 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\cust_data.py changed, reloading. INFO 2019-11-13 18:42:34,415 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 18:42:52,932 log 228 Forbidden: /invoice/ WARNING 2019-11-13 18:42:52,933 basehttp 154 "GET /invoice/ HTTP/1.1" 403 27 WARNING 2019-11-13 18:42:53,029 log 228 Forbidden: /favicon.ico WARNING 2019-11-13 18:42:53,030 basehttp 154 "GET /favicon.ico HTTP/1.1" 403 27 INFO 2019-11-13 18:43:12,968 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 18:44:58,482 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:45:02,304 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 18:48:31,372 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:48:33,913 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 18:49:07,766 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:49:09,836 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 18:58:19,421 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 18:58:22,912 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 18:59:10,916 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:00:27,128 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:00:37,873 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:00:38,800 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:02:06,829 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:02:38,274 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 19:02:40,460 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 24, in get row_cus_no = customer_data(CUS_NO, CUS_NO_NAME, '1', datetime.datetime.strptime(LZ_DD, '%Y-%m-%d')) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\cust_data.py", line 19, in customer_data """, [CUS_NO, CUS_NO_NAME,OBJ_ID,'ADMIN','ADMIN',DATE,DATE]) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 532, in execute sql = self.format_sql(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 500, in format_sql sql = sql % tuple('?' * len(params)) TypeError: not all arguments converted during string formatting ERROR 2019-11-13 19:02:40,462 basehttp 154 "GET /invoice/ HTTP/1.1" 500 114737 INFO 2019-11-13 19:03:26,982 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:03:31,714 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:06:04,515 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:06:11,006 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:07:40,635 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:07:43,300 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:09:35,179 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:09:47,533 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 19:09:50,761 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 24, in get row_cus_no = customer_data(CUS_NO, CUS_NO_NAME, 1, LZ_DD) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\cust_data.py", line 18, in customer_data """, [CUS_NO, CUS_NO_NAME,OBJ_ID,'ADMIN','ADMIN',DATE,DATE]) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 532, in execute sql = self.format_sql(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 500, in format_sql sql = sql % tuple('?' * len(params)) TypeError: must be real number, not str ERROR 2019-11-13 19:09:50,764 basehttp 154 "GET /invoice/ HTTP/1.1" 500 113610 INFO 2019-11-13 19:11:19,196 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:15:02,738 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\cust_data.py changed, reloading. INFO 2019-11-13 19:15:03,437 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:15:26,707 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\cust_data.py changed, reloading. INFO 2019-11-13 19:15:27,466 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:15:57,227 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:16:00,560 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:17:13,294 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:17:16,532 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:18:21,054 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:18:23,518 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:19:14,678 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:19:17,173 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:20:15,288 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:20:18,985 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:21:27,225 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:21:29,538 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:22:00,838 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:22:07,363 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:22:54,528 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:23:03,198 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:23:21,085 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:24:04,385 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:24:06,803 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:24:32,423 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:24:35,946 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:25:04,946 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:25:06,449 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:25:31,040 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 19:25:36,463 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-11-13 19:26:06,113 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\cust_data.py changed, reloading. INFO 2019-11-13 19:26:06,938 autoreload 597 Watching for file changes with StatReloader ======= WARNING 2019-10-26 15:31:41,879 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:31:41,879 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39 INFO 2019-10-26 15:35:42,526 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 15:35:46,076 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:35:46,076 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39 WARNING 2019-10-26 15:37:52,221 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:37:52,222 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39 WARNING 2019-10-26 15:39:56,569 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:39:56,570 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-10-26 15:40:06,688 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:40:06,688 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39 INFO 2019-10-26 15:41:08,490 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 15:43:52,321 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:43:52,321 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39 INFO 2019-10-26 15:44:05,338 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-10-26 15:44:32,840 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 WARNING 2019-10-26 15:44:36,934 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:44:36,934 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-10-26 15:44:55,973 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:44:55,973 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 WARNING 2019-10-26 15:45:16,193 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:45:16,194 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 15:45:32,802 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 15:45:40,839 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 15:45:43,261 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:45:43,262 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 15:45:51,198 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 15:45:53,169 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 15:45:56,463 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 15:45:57,690 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 15:45:58,635 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 15:45:59,382 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 WARNING 2019-10-26 15:46:39,703 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:46:39,704 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 WARNING 2019-10-26 15:46:40,883 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:46:40,883 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 15:46:44,675 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-10-26 15:46:47,737 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 WARNING 2019-10-26 15:46:48,995 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:46:48,996 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 15:46:52,536 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 15:46:53,809 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:46:53,809 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-10-26 15:46:55,169 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:46:55,169 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 15:47:22,946 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24 INFO 2019-10-26 15:47:25,783 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24 INFO 2019-10-26 15:47:46,364 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 WARNING 2019-10-26 15:47:48,702 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:47:48,702 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 15:57:11,237 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 15:57:13,888 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:57:13,889 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-10-26 15:57:15,422 log 228 Forbidden: /invoice/ WARNING 2019-10-26 15:57:15,422 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 15:57:42,581 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24 INFO 2019-10-26 15:57:44,459 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24 INFO 2019-10-26 15:58:22,380 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-10-26 16:00:24,377 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24 INFO 2019-10-26 16:01:06,398 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 WARNING 2019-10-26 16:01:08,375 log 228 Forbidden: /invoice/ WARNING 2019-10-26 16:01:08,376 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 16:01:41,337 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 16:01:42,339 log 228 Forbidden: /invoice/ WARNING 2019-10-26 16:01:42,339 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-10-26 16:01:55,226 log 228 Forbidden: /invoice/ WARNING 2019-10-26 16:01:55,227 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 INFO 2019-10-26 16:10:06,833 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 16:11:23,976 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 16:11:51,199 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 ERROR 2019-10-26 16:22:50,204 log 228 Internal Server Error: /paymentoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 101, in post ,datetime.datetime.strptime(RP_DD, '%Y-%m-%d'),RP_NO]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 542, in execute sql = self.format_sql(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 510, in format_sql sql = sql % tuple('?' * len(params)) TypeError: not all arguments converted during string formatting ERROR 2019-10-26 16:22:50,206 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 500 110930 INFO 2019-10-26 16:24:33,700 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 WARNING 2019-10-26 16:25:03,979 log 228 Forbidden: /invoice/ WARNING 2019-10-26 16:25:03,980 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 48 INFO 2019-10-26 16:25:17,685 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 16:25:20,901 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-10-26 16:25:27,596 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 16:27:43,951 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 16:47:21,302 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 16:47:21,302 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 15 WARNING 2019-10-26 16:49:22,716 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 16:49:22,716 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 15 ERROR 2019-10-26 16:49:54,113 log 228 Internal Server Error: /paymentoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 180, in put row_AMTN = cursor.execute("""SELECT AMTN_BC FROM TF_MON WHERE RP_NO=%s AND PR_ID='2'""", [RP_NO]).fetchall()[0][0] File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-10-26 16:49:54,117 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 500 126543 ERROR 2019-10-26 16:50:35,155 log 228 Internal Server Error: /paymentoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 180, in put row_AMTN = cursor.execute("""SELECT AMTN_BC FROM TF_MON WHERE RP_NO=%s AND PR_ID='2'""", [RP_NO]).fetchall()[0][0] File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-10-26 16:50:35,157 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 500 126546 ERROR 2019-10-26 16:51:00,696 log 228 Internal Server Error: /paymentoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 180, in put row_AMTN = cursor.execute("""SELECT AMTN_BC FROM TF_MON WHERE RP_NO=%s AND PR_ID='2'""", [RP_NO]).fetchall()[0][0] File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-10-26 16:51:00,698 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 500 126546 WARNING 2019-10-26 17:00:46,983 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:00:46,983 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21 WARNING 2019-10-26 17:00:59,051 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:00:59,051 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21 WARNING 2019-10-26 17:01:35,345 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:01:35,345 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21 WARNING 2019-10-26 17:02:54,095 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:02:54,095 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21 INFO 2019-10-26 17:03:37,523 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36 INFO 2019-10-26 17:04:55,512 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36 WARNING 2019-10-26 17:30:24,738 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:30:24,739 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15 ERROR 2019-10-26 17:30:59,238 log 228 Internal Server Error: /paymentoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 297, in delete cursor.execute("""DELETE FROM MF_BAC WHERE BB_NO=%s AND RP_ID='2'""", ['BT'+RP_NO[2::]]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-10-26 17:30:59,241 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 500 126111 INFO 2019-10-26 17:33:53,187 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 WARNING 2019-10-26 17:34:25,873 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:34:25,874 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 36 WARNING 2019-10-26 17:34:33,716 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:34:33,716 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15 INFO 2019-10-26 17:39:32,014 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 17:39:50,505 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36 INFO 2019-10-26 17:40:11,226 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 17:48:51,576 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 17:49:04,517 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 INFO 2019-10-26 17:49:13,853 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 17:49:17,183 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 WARNING 2019-10-26 17:49:39,792 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 17:49:39,792 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15 INFO 2019-10-26 18:28:14,669 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 INFO 2019-10-26 18:28:18,274 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 18:28:21,150 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-10-26 18:28:25,458 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 18:28:25,458 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21 INFO 2019-10-26 18:30:04,306 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 18:30:19,015 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36 WARNING 2019-10-26 18:30:28,836 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-26 18:30:28,837 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21 INFO 2019-10-26 18:30:38,718 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 18:31:02,819 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 INFO 2019-10-26 18:35:00,176 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 INFO 2019-10-26 18:35:06,199 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-26 18:35:09,065 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-10-26 18:35:32,737 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 18:35:38,682 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36 INFO 2019-10-26 18:35:48,661 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-26 18:35:55,766 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 INFO 2019-10-28 09:04:08,436 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 WARNING 2019-10-28 09:05:08,930 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:05:08,930 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 403 15 INFO 2019-10-28 09:05:19,111 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42 INFO 2019-10-28 09:14:12,133 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42 INFO 2019-10-28 09:23:44,854 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42 INFO 2019-10-28 09:24:13,707 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42 WARNING 2019-10-28 09:24:58,993 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:24:58,993 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 403 27 WARNING 2019-10-28 09:28:41,541 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:28:41,542 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 15 WARNING 2019-10-28 09:29:03,803 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:29:03,803 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 15 INFO 2019-10-28 09:30:24,164 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 200 45 WARNING 2019-10-28 09:34:09,682 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:34:09,682 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 27 INFO 2019-10-28 09:34:29,286 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 INFO 2019-10-28 09:34:49,859 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42 WARNING 2019-10-28 09:35:20,642 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:35:20,643 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 33 WARNING 2019-10-28 09:35:37,100 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:35:37,101 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 33 INFO 2019-10-28 09:39:00,461 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 200 45 INFO 2019-10-28 09:39:06,134 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-10-28 09:39:09,613 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36 INFO 2019-10-28 09:39:34,619 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36 INFO 2019-10-28 09:39:56,474 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 INFO 2019-10-28 09:40:00,198 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42 WARNING 2019-10-28 09:40:35,489 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 09:40:35,490 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 33 INFO 2019-10-28 09:40:42,079 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 200 45 WARNING 2019-10-28 13:20:21,682 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 13:20:21,682 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 24 INFO 2019-10-28 13:20:26,561 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 WARNING 2019-10-28 13:20:30,181 log 228 Forbidden: /invoice/ WARNING 2019-10-28 13:20:30,182 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 48 WARNING 2019-10-28 13:20:47,121 log 228 Forbidden: /paymentoperation/ WARNING 2019-10-28 13:20:47,122 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15 INFO 2019-10-28 13:20:55,254 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39 INFO 2019-10-28 13:20:58,635 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-10-28 13:21:04,731 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-10-28 13:27:56,959 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 WARNING 2019-10-28 13:27:58,680 log 228 Forbidden: /expectedpoperation/ WARNING 2019-10-28 13:27:58,680 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24 INFO 2019-10-28 13:28:21,935 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42 INFO 2019-10-28 13:34:02,390 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-10-28 13:35:23,918 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 200 55 INFO 2019-10-28 15:36:48,198 basehttp 154 "PUT /expectedptoperation/ HTTP/1.1" 200 54 INFO 2019-10-28 15:41:44,910 basehttp 154 "DELETE /expectedptoperation/ HTTP/1.1" 200 57 WARNING 2019-10-28 15:41:47,353 log 228 Forbidden: /expectedptoperation/ WARNING 2019-10-28 15:41:47,353 basehttp 154 "DELETE /expectedptoperation/ HTTP/1.1" 403 15 ERROR 2019-10-28 17:13:21,613 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner return func(*args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall return self.format_rows(self.cursor.fetchall()) pyodbc.ProgrammingError: No results. Previous SQL was not a query. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 25, in get row = cursor.fetchall() File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner return func(*args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner return func(*args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall return self.format_rows(self.cursor.fetchall()) django.db.utils.ProgrammingError: No results. Previous SQL was not a query. ERROR 2019-10-28 17:13:21,617 basehttp 154 "GET /invoice/ HTTP/1.1" 500 103126 ERROR 2019-10-28 17:14:09,053 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner return func(*args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall return self.format_rows(self.cursor.fetchall()) pyodbc.ProgrammingError: No results. Previous SQL was not a query. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 26, in get row = cursor.fetchall() File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner return func(*args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner return func(*args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall return self.format_rows(self.cursor.fetchall()) django.db.utils.ProgrammingError: No results. Previous SQL was not a query. ERROR 2019-10-28 17:14:09,055 basehttp 154 "GET /invoice/ HTTP/1.1" 500 103121 INFO 2019-10-28 17:14:37,315 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-10-28 17:18:40,853 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-10-28 17:46:37,114 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-10-28 17:47:59,023 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-10-28 17:48:24,002 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10 INFO 2019-10-29 17:17:19,858 basehttp 154 "GET /sales HTTP/1.1" 301 0 INFO 2019-10-29 17:17:19,893 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-10-29 17:17:19,955 log 228 Not Found: /favicon.ico WARNING 2019-10-29 17:17:19,956 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 2790 INFO 2019-10-30 08:53:29,962 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-10-30 09:01:13,540 log 228 Forbidden: /sales/ WARNING 2019-10-30 09:01:13,540 basehttp 154 "POST /sales/ HTTP/1.1" 403 51 ERROR 2019-10-30 09:01:22,412 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 82, in post INV_NO,datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'),datetime.datetime.strptime(LZ_DD, '%Y-%m-%d')]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 542, in execute sql = self.format_sql(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 510, in format_sql sql = sql % tuple('?' * len(params)) TypeError: not all arguments converted during string formatting ERROR 2019-10-30 09:01:22,414 basehttp 154 "POST /sales/ HTTP/1.1" 500 117057 ERROR 2019-10-30 09:06:26,281 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 137, in _get_response "returned None instead." % (callback.__module__, view_name) ValueError: The view salesinvoice.views.salesView didn't return an HttpResponse object. It returned None instead. ERROR 2019-10-30 09:06:26,284 basehttp 154 "POST /sales/ HTTP/1.1" 500 61515 ERROR 2019-10-30 09:08:20,019 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 71, in post datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'),AMT]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)") ERROR 2019-10-30 09:08:20,023 basehttp 154 "POST /sales/ HTTP/1.1" 500 133988 WARNING 2019-10-30 09:09:07,909 log 228 Forbidden: /sales/ WARNING 2019-10-30 09:09:07,909 basehttp 154 "POST /sales/ HTTP/1.1" 403 27 INFO 2019-10-30 09:10:51,862 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 09:34:16,513 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 ERROR 2019-10-30 09:40:09,694 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__TF_LZ'。不能在对象 'dbo.TF_LZ' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 90, in post ('LZ',%s,1,%s,%s,%s,'AQ001',1,%s,5,1,1,'SA',1,'服務費用',%s,1,1)""",[ZL_NO, 'SA' + ZL_NO[2::],AMT,AMT,datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'), CUS_NO]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__TF_LZ'。不能在对象 'dbo.TF_LZ' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)") ERROR 2019-10-30 09:40:09,698 basehttp 154 "POST /sales/ HTTP/1.1" 500 133487 INFO 2019-10-30 09:40:39,938 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 09:41:21,053 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 09:45:39,565 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 09:56:47,597 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 09:58:19,521 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 10:01:37,714 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 WARNING 2019-10-30 10:15:39,303 log 228 Forbidden: /sales/ WARNING 2019-10-30 10:15:39,303 basehttp 154 "PUT /sales/ HTTP/1.1" 403 51 INFO 2019-10-30 10:15:47,263 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60 ERROR 2019-10-30 10:26:49,687 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 335, in delete req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-10-30 10:26:49,691 basehttp 154 "DELETE /invoice/?ZL_NO=LZS9A300001&ZHANG_ID=3 HTTP/1.1" 500 97827 WARNING 2019-10-30 10:28:36,918 base 93 Method Not Allowed (DELETE): /sales/ WARNING 2019-10-30 10:28:36,918 log 228 Method Not Allowed: /sales/ WARNING 2019-10-30 10:28:36,918 basehttp 154 "DELETE /sales/ HTTP/1.1" 405 0 WARNING 2019-10-30 10:29:14,406 log 228 Forbidden: /sales/ WARNING 2019-10-30 10:29:14,406 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21 INFO 2019-10-30 10:30:23,997 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 60 INFO 2019-10-30 10:30:57,516 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 60 WARNING 2019-10-30 10:31:36,845 log 228 Forbidden: /sales/ WARNING 2019-10-30 10:31:36,846 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21 WARNING 2019-10-30 10:31:41,341 log 228 Forbidden: /sales/ WARNING 2019-10-30 10:31:41,341 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21 ERROR 2019-10-30 10:32:19,311 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 75, in post datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'),AMT]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)") ERROR 2019-10-30 10:32:19,313 basehttp 154 "POST /sales/ HTTP/1.1" 500 133997 INFO 2019-10-30 10:33:03,845 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 10:33:20,400 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60 INFO 2019-10-30 10:33:29,120 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 INFO 2019-10-30 10:34:34,157 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 10:34:36,603 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60 INFO 2019-10-30 10:34:39,263 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 INFO 2019-10-30 10:34:41,980 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 10:56:56,320 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 WARNING 2019-10-30 10:56:58,661 log 228 Forbidden: /sales/ WARNING 2019-10-30 10:56:58,662 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21 INFO 2019-10-30 10:57:02,371 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 10:57:05,316 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60 INFO 2019-10-30 10:57:08,645 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 WARNING 2019-10-30 10:57:09,693 log 228 Forbidden: /sales/ WARNING 2019-10-30 10:57:09,693 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21 INFO 2019-10-30 11:02:59,771 basehttp 154 "GET /proceeds HTTP/1.1" 301 0 INFO 2019-10-30 11:02:59,783 basehttp 154 "GET /proceeds/ HTTP/1.1" 200 48 WARNING 2019-10-30 11:36:24,589 log 228 Forbidden: /invoice/ WARNING 2019-10-30 11:36:24,590 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 INFO 2019-10-30 11:37:26,909 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 ERROR 2019-10-30 11:46:51,278 log 228 Internal Server Error: /proceeds Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\utils\deprecation.py", line 90, in __call__ response = self.process_request(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\middleware\common.py", line 53, in process_request path = self.get_full_path_with_slash(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\middleware\common.py", line 93, in get_full_path_with_slash 'url': request.get_host() + new_path, RuntimeError: You called this URL via POST, 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 POST data. Change your form to point to 127.0.0.1:8000/proceeds/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings. ERROR 2019-10-30 11:46:51,279 basehttp 154 "POST /proceeds HTTP/1.1" 500 68450 ERROR 2019-10-30 11:47:31,389 log 228 Internal Server Error: /proceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 341, in post row_AMT = cursor.execute("SELECT CAST(ISNULL(AMT,0) AS INT ),BIL_NO FROM MF_ARP WHERE BIL_NO=%s",[MF_LZ1]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-10-30 11:47:31,391 basehttp 154 "POST /proceeds/ HTTP/1.1" 500 85496 INFO 2019-10-30 13:22:08,693 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 13:42:52,852 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 13:48:15,671 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 13:51:34,234 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 13:54:59,562 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 13:58:43,435 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 14:28:41,733 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 14:30:16,253 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 14:30:17,254 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 WARNING 2019-10-30 14:33:00,957 log 228 Forbidden: /proceeds/ WARNING 2019-10-30 14:33:00,958 basehttp 154 "PUT /proceeds/ HTTP/1.1" 403 21 INFO 2019-10-30 14:33:29,952 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 ERROR 2019-10-30 14:44:53,711 log 228 Internal Server Error: /proceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 453, in delete row_AMTN_MF_ARP = cursor.execute("""SELECT AMTN FROM MF_ARP WHERE BIL_NO=%s""", [MF_LZ1]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-10-30 14:44:53,712 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 500 83376 ERROR 2019-10-30 14:45:59,949 log 228 Internal Server Error: /proceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 453, in delete row_AMTN_MF_ARP = cursor.execute("""SELECT AMTN FROM MF_ARP WHERE BIL_NO=%s""", [MF_LZ1]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-10-30 14:45:59,951 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 500 83376 INFO 2019-10-30 14:47:40,695 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51 INFO 2019-10-30 14:48:14,594 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 INFO 2019-10-30 14:48:20,519 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 14:48:27,205 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 14:49:02,467 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 14:49:05,827 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51 INFO 2019-10-30 14:51:28,576 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 INFO 2019-10-30 14:51:31,576 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 14:51:33,701 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 14:51:37,598 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 14:56:00,429 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51 WARNING 2019-10-30 15:01:11,277 log 228 Forbidden: /proceeds/ WARNING 2019-10-30 15:01:11,277 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 403 21 INFO 2019-10-30 15:01:14,914 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 INFO 2019-10-30 15:01:18,717 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-30 15:01:23,694 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-10-30 15:01:27,030 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 15:01:32,025 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51 INFO 2019-10-30 16:11:57,129 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 INFO 2019-10-30 18:00:39,949 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60 ERROR 2019-10-30 18:08:10,643 log 228 Internal Server Error: /predictproceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 626, in delete cursor.execute("""DELETE FROM MF_BAC WHERE BB_NO=%s AND RP_ID='2'""", ['BT' + RP_NO[2::]]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-10-30 18:08:10,646 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 500 125242 ERROR 2019-10-30 18:08:34,925 log 228 Internal Server Error: /predictproceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 626, in delete cursor.execute("""DELETE FROM MF_BAC WHERE BB_NO=%s AND RP_ID='2'""", ['BT' + RP_NO[2::]]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-10-30 18:08:34,928 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 500 125223 INFO 2019-10-30 18:09:15,961 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 INFO 2019-10-30 18:17:25,623 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63 INFO 2019-10-30 18:21:25,330 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 INFO 2019-10-30 18:21:37,718 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60 INFO 2019-10-30 18:21:49,575 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63 INFO 2019-10-30 18:46:52,323 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:49:24,957 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:52:07,282 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:54:11,644 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:54:19,095 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:55:30,664 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:56:07,419 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:56:39,652 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 WARNING 2019-10-30 18:56:57,110 log 228 Forbidden: /predictproceeds/ WARNING 2019-10-30 18:56:57,110 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21 INFO 2019-10-30 18:57:26,353 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:57:44,762 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:58:17,613 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-30 18:58:46,677 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 WARNING 2019-10-30 18:59:32,970 log 228 Forbidden: /predictproceeds/ WARNING 2019-10-30 18:59:32,971 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21 ERROR 2019-10-30 19:03:56,102 log 228 Internal Server Error: /predictproceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 19, in inner print(name) NameError: name 'name' is not defined ERROR 2019-10-30 19:03:56,103 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 500 58158 INFO 2019-10-30 19:04:16,724 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 WARNING 2019-10-30 19:04:51,537 log 228 Forbidden: /predictproceeds/ WARNING 2019-10-30 19:04:51,537 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21 WARNING 2019-10-30 19:05:54,675 log 228 Forbidden: /predictproceeds/ WARNING 2019-10-30 19:05:54,676 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21 WARNING 2019-10-31 11:07:56,865 log 228 Forbidden: /predictproceeds/ WARNING 2019-10-31 11:07:56,866 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21 INFO 2019-10-31 11:08:37,578 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48 INFO 2019-10-31 11:29:48,607 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 INFO 2019-10-31 11:34:16,468 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-31 11:34:38,641 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 ERROR 2019-10-31 11:36:32,992 log 228 Internal Server Error: /predictproceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 512, in post row_usr = usr_data(USR, USR_NAME, datetime.datetime.strptime(RP_DD, '%Y-%m-%d')) TypeError: strptime() argument 1 must be str, not None ERROR 2019-10-31 11:36:32,995 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 83363 ERROR 2019-10-31 11:39:07,545 log 228 Internal Server Error: /predictpayment/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 702, in post yf_sum =round(yf_sum + cursor.execute("""SELECT AMTN FROM MF_ARP WHERE BIL_NO=%s""", [i["DH"]]).fetchall()[0][0], 4) IndexError: list index out of range ERROR 2019-10-31 11:39:07,548 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 84378 INFO 2019-10-31 13:14:18,613 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55 ERROR 2019-10-31 13:19:29,067 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 225, in delete if int(ZHANG_ID) != 1 and int(ZHANG_ID) != 2: TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' ERROR 2019-10-31 13:19:29,069 basehttp 154 "DELETE /sales/ HTTP/1.1" 500 82324 WARNING 2019-10-31 13:21:26,048 log 228 Forbidden: /sales/ WARNING 2019-10-31 13:21:26,049 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21 ERROR 2019-10-31 13:21:45,155 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 230, in delete row_TC_MON = examine_ood('TC_MON', 'RP_NO', 'AR' + ZL_NO[2::], 'RP_ID', '1') TypeError: 'NoneType' object is not subscriptable ERROR 2019-10-31 13:21:45,157 basehttp 154 "DELETE /sales/ HTTP/1.1" 500 82315 INFO 2019-10-31 13:24:53,745 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-31 13:25:03,975 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-10-31 13:25:22,981 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55 INFO 2019-10-31 13:26:44,203 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55 WARNING 2019-10-31 13:40:15,886 log 228 Forbidden: /predictpayment/ WARNING 2019-10-31 13:40:15,888 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 18 INFO 2019-10-31 13:40:40,334 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54 ERROR 2019-10-31 13:54:42,877 log 228 Internal Server Error: /predictpayment/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'RP_ID' 附近有语法错误。 (102) (SQLExecDirectW); [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 891, in delete cursor.execute("""DELETE FROM TF_MON1 WHERE RP_NO=%s RP_ID='1'""", [RP_NO]) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'RP_ID' 附近有语法错误。 (102) (SQLExecDirectW); [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-10-31 13:54:42,882 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 500 127177 INFO 2019-10-31 13:58:39,440 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 200 57 INFO 2019-10-31 13:59:16,898 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55 INFO 2019-10-31 13:59:30,475 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54 INFO 2019-10-31 13:59:47,133 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 200 57 WARNING 2019-11-01 13:19:01,710 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:19:01,815 basehttp 154 "POST /sales/ HTTP/1.1" 403 77 INFO 2019-11-01 13:19:18,508 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 WARNING 2019-11-01 13:20:50,209 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:20:50,209 basehttp 154 "POST /sales/ HTTP/1.1" 403 27 WARNING 2019-11-01 13:21:24,074 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:21:24,074 basehttp 154 "POST /sales/ HTTP/1.1" 403 27 WARNING 2019-11-01 13:22:01,120 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:22:01,121 basehttp 154 "POST /sales/ HTTP/1.1" 403 77 WARNING 2019-11-01 13:23:02,571 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:23:02,571 basehttp 154 "POST /sales/ HTTP/1.1" 403 21 WARNING 2019-11-01 13:23:15,243 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:23:15,243 basehttp 154 "POST /sales/ HTTP/1.1" 403 27 INFO 2019-11-01 13:23:27,865 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 WARNING 2019-11-01 13:31:04,968 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:31:04,968 basehttp 154 "PUT /sales/ HTTP/1.1" 403 45 INFO 2019-11-01 13:32:14,626 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60 ERROR 2019-11-01 13:33:57,082 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 182, in put if re.compile('(^-?[0-9](\d+)?(\.\d{1,6})?$)|(^0$)|(^\d\.\d{1,2}$)').match(AMT) is None: TypeError: expected string or bytes-like object ERROR 2019-11-01 13:33:57,084 basehttp 154 "PUT /sales/ HTTP/1.1" 500 85230 ERROR 2019-11-01 13:34:35,913 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 182, in put if re.compile('(^-?[0-9](\d+)?(\.\d{1,6})?$)|(^0$)|(^\d\.\d{1,2}$)').match(AMT) is None: TypeError: expected string or bytes-like object ERROR 2019-11-01 13:34:35,971 basehttp 154 "PUT /sales/ HTTP/1.1" 500 85229 WARNING 2019-11-01 13:36:30,555 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:36:30,556 basehttp 154 "PUT /sales/ HTTP/1.1" 403 51 WARNING 2019-11-01 13:36:54,761 log 228 Forbidden: /sales/ WARNING 2019-11-01 13:36:54,761 basehttp 154 "PUT /sales/ HTTP/1.1" 403 51 INFO 2019-11-01 13:43:51,173 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63 INFO 2019-11-01 13:49:22,907 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 WARNING 2019-11-01 14:11:30,593 log 228 Forbidden: /proceeds/ WARNING 2019-11-01 14:11:30,594 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77 WARNING 2019-11-01 14:11:39,487 log 228 Forbidden: /proceeds/ WARNING 2019-11-01 14:11:39,488 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77 WARNING 2019-11-01 14:11:49,961 log 228 Forbidden: /proceeds/ WARNING 2019-11-01 14:11:49,962 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77 WARNING 2019-11-01 14:12:55,961 log 228 Forbidden: /proceeds/ WARNING 2019-11-01 14:12:55,962 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77 WARNING 2019-11-01 14:13:08,152 log 228 Forbidden: /proceeds/ WARNING 2019-11-01 14:13:08,153 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 21 INFO 2019-11-01 14:13:13,947 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 ERROR 2019-11-01 14:25:21,711 log 228 Internal Server Error: /proceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 403, in put req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 4 column 17 (char 73) ERROR 2019-11-01 14:25:21,714 basehttp 154 "PUT /proceeds/ HTTP/1.1" 500 94811 WARNING 2019-11-01 14:26:31,795 log 228 Forbidden: /proceeds/ WARNING 2019-11-01 14:26:31,795 basehttp 154 "PUT /proceeds/ HTTP/1.1" 403 21 ERROR 2019-11-01 14:26:55,614 log 228 Internal Server Error: /proceeds/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 403, in put req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 4 column 17 (char 73) ERROR 2019-11-01 14:26:55,616 basehttp 154 "PUT /proceeds/ HTTP/1.1" 500 94808 WARNING 2019-11-01 14:27:03,962 log 228 Forbidden: /proceeds/ WARNING 2019-11-01 14:27:03,963 basehttp 154 "PUT /proceeds/ HTTP/1.1" 403 21 INFO 2019-11-01 14:29:09,194 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48 INFO 2019-11-01 14:34:53,249 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51 WARNING 2019-11-01 14:49:17,092 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 14:49:17,093 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81 WARNING 2019-11-01 14:49:24,441 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 14:49:24,441 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81 WARNING 2019-11-01 14:49:58,609 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 14:49:58,610 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81 WARNING 2019-11-01 14:50:23,437 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 14:50:23,437 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81 WARNING 2019-11-01 14:50:40,875 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 14:50:40,876 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 21 INFO 2019-11-01 14:51:20,192 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 WARNING 2019-11-01 15:22:53,636 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 15:22:53,636 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 403 81 WARNING 2019-11-01 15:23:04,357 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 15:23:04,358 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 403 81 WARNING 2019-11-01 15:23:12,163 log 228 Forbidden: /predictproceeds/ WARNING 2019-11-01 15:23:12,164 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 403 21 INFO 2019-11-01 15:23:16,541 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60 INFO 2019-11-01 15:23:30,904 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60 INFO 2019-11-01 15:33:26,037 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63 INFO 2019-11-01 15:34:24,768 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 INFO 2019-11-01 15:34:43,307 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63 INFO 2019-11-01 15:35:49,807 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 WARNING 2019-11-01 16:04:28,431 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:04:28,432 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 81 WARNING 2019-11-01 16:23:08,201 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:23:08,202 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 78 WARNING 2019-11-01 16:23:54,853 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:23:54,854 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77 WARNING 2019-11-01 16:24:53,507 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:24:53,507 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 24 ERROR 2019-11-01 16:25:57,326 log 228 Internal Server Error: /predictpayment/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 760, in post req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 9 column 19 (char 200) ERROR 2019-11-01 16:25:57,329 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 95999 WARNING 2019-11-01 16:26:14,247 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:26:14,247 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 24 WARNING 2019-11-01 16:27:08,761 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:27:08,761 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 24 ERROR 2019-11-01 16:27:36,380 log 228 Internal Server Error: /predictpayment/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 811, in post sum_ATM = round(sum_ATM + i["ATM"], 4) TypeError: unsupported operand type(s) for +: 'int' and 'str' ERROR 2019-11-01 16:27:36,380 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 84315 WARNING 2019-11-01 16:28:56,052 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:28:56,052 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 21 WARNING 2019-11-01 16:29:36,517 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:29:36,517 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77 WARNING 2019-11-01 16:29:51,042 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:29:51,042 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77 INFO 2019-11-01 16:31:22,212 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 WARNING 2019-11-01 16:31:48,381 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:31:48,381 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77 WARNING 2019-11-01 16:32:48,505 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:32:48,506 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77 WARNING 2019-11-01 16:33:19,688 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:33:19,688 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77 ERROR 2019-11-01 16:34:02,695 log 228 Internal Server Error: /predictpayment/ Traceback (most recent call last): File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 818, in post sum_ATM = round(sum_ATM + i["ATM"], 4) TypeError: unsupported operand type(s) for +: 'int' and 'str' ERROR 2019-11-01 16:34:02,698 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 84445 INFO 2019-11-01 16:34:47,995 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55 WARNING 2019-11-01 16:45:10,035 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:45:10,036 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 78 WARNING 2019-11-01 16:45:26,850 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:45:26,851 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 24 WARNING 2019-11-01 16:45:33,334 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:45:33,334 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 21 WARNING 2019-11-01 16:45:38,530 log 228 Forbidden: /predictpayment/ WARNING 2019-11-01 16:45:38,530 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 77 INFO 2019-11-01 16:45:52,084 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54 INFO 2019-11-01 16:56:10,281 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 200 57 INFO 2019-11-01 16:56:39,119 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55 INFO 2019-11-01 16:56:42,481 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54 INFO 2019-11-01 17:08:00,063 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61 INFO 2019-11-01 17:09:56,722 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-11-03 09:31:11,225 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-11-03 09:33:59,721 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:33:59,722 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77 WARNING 2019-11-03 09:35:05,095 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:35:05,095 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77 WARNING 2019-11-03 09:35:20,688 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:35:20,689 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77 WARNING 2019-11-03 09:35:52,639 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:35:52,640 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77 INFO 2019-11-03 09:36:15,440 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-11-03 09:36:19,691 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:36:19,691 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-11-03 09:36:30,801 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:36:30,802 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-11-03 09:40:34,660 log 228 Forbidden: /predictpayment/ WARNING 2019-11-03 09:40:34,661 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 21 WARNING 2019-11-03 09:44:21,215 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:44:21,215 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 77 WARNING 2019-11-03 09:44:32,753 log 228 Forbidden: /invoice/ WARNING 2019-11-03 09:44:32,753 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 51 INFO 2019-11-03 09:44:40,144 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24 INFO 2019-11-03 09:51:45,857 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-11-03 09:52:28,758 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 WARNING 2019-11-03 09:56:09,368 log 228 Forbidden: /paymentoperation/ WARNING 2019-11-03 09:56:09,368 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 77 WARNING 2019-11-03 09:56:30,717 log 228 Forbidden: /paymentoperation/ WARNING 2019-11-03 09:56:30,717 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21 WARNING 2019-11-03 09:56:42,839 log 228 Forbidden: /paymentoperation/ WARNING 2019-11-03 09:56:42,839 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21 WARNING 2019-11-03 10:09:35,938 log 228 Forbidden: /paymentoperation/ WARNING 2019-11-03 10:09:35,939 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21 INFO 2019-11-03 10:10:05,544 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-11-03 10:10:38,281 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-11-03 10:14:17,182 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-11-03 10:14:21,515 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37 INFO 2019-11-03 10:16:01,412 basehttp 154 "POST /sales/ HTTP/1.1" 200 61 INFO 2019-11-03 10:16:40,654 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 INFO 2019-11-03 10:16:44,598 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49 WARNING 2019-11-03 10:27:20,335 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-03 10:27:20,335 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 81 WARNING 2019-11-03 10:27:37,242 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-03 10:27:37,243 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 21 INFO 2019-11-03 10:27:42,844 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 WARNING 2019-11-03 10:32:17,179 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-03 10:32:17,179 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24 INFO 2019-11-03 10:32:21,650 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 INFO 2019-11-03 10:48:13,967 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 WARNING 2019-11-03 10:49:09,912 log 228 Forbidden: /expectedptoperation/ WARNING 2019-11-03 10:49:09,912 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 78 WARNING 2019-11-03 10:49:19,047 log 228 Forbidden: /expectedptoperation/ WARNING 2019-11-03 10:49:19,048 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 78 WARNING 2019-11-03 10:53:16,383 log 228 Forbidden: /invoice/ WARNING 2019-11-03 10:53:16,383 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 INFO 2019-11-03 10:53:23,953 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-11-03 10:55:32,096 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 WARNING 2019-11-03 10:56:30,153 log 228 Forbidden: /expectedptoperation/ WARNING 2019-11-03 10:56:30,154 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 78 WARNING 2019-11-03 10:56:50,449 log 228 Forbidden: /expectedptoperation/ WARNING 2019-11-03 10:56:50,449 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 21 WARNING 2019-11-03 10:57:13,811 log 228 Forbidden: /expectedptoperation/ WARNING 2019-11-03 10:57:13,811 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 21 INFO 2019-11-03 10:58:47,136 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 200 55 INFO 2019-11-03 10:59:54,774 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 200 55 INFO 2019-11-03 11:07:29,842 basehttp 154 "GET /sales HTTP/1.1" 301 0 INFO 2019-11-03 11:07:29,865 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:07:29,914 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:07:29,915 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3280 ERROR 2019-11-03 11:09:07,485 exception 77 Invalid HTTP_HOST header: '192.168.137.1:8000'. You may need to add '192.168.137.1' to ALLOWED_HOSTS. WARNING 2019-11-03 11:09:07,524 log 228 Bad Request: /sales/ WARNING 2019-11-03 11:09:07,525 basehttp 154 "GET /sales/ HTTP/1.1" 400 66679 ERROR 2019-11-03 11:09:07,706 exception 77 Invalid HTTP_HOST header: '192.168.137.1:8000'. You may need to add '192.168.137.1' to ALLOWED_HOSTS. WARNING 2019-11-03 11:09:07,742 log 228 Bad Request: /favicon.ico WARNING 2019-11-03 11:09:07,742 basehttp 154 "GET /favicon.ico HTTP/1.1" 400 66668 INFO 2019-11-03 11:12:55,385 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:12:55,413 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:12:55,413 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3284 WARNING 2019-11-03 11:13:36,096 log 228 Not Found: / WARNING 2019-11-03 11:13:36,096 basehttp 154 "GET / HTTP/1.1" 404 3234 WARNING 2019-11-03 11:13:53,887 log 228 Not Found: //sales/ WARNING 2019-11-03 11:13:53,888 basehttp 154 "GET //sales/ HTTP/1.1" 404 3273 WARNING 2019-11-03 11:13:54,057 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:13:54,058 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:14:00,119 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-03 11:15:08,274 basehttp 154 "GET /sales HTTP/1.1" 301 0 INFO 2019-11-03 11:15:08,485 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-03 11:15:34,578 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:15:34,750 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:15:34,751 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:15:43,992 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:15:44,662 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:15:44,663 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:15:46,578 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:15:46,910 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:15:46,911 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:15:52,647 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:15:58,776 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:15:58,776 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:16:00,367 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:16:03,144 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:16:03,144 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:16:04,835 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:16:05,110 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:16:05,111 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:18:35,084 basehttp 154 "GET /sales/ HTTP/1.0" 200 54 WARNING 2019-11-03 11:18:38,541 log 228 Not Found: / WARNING 2019-11-03 11:18:38,542 basehttp 154 "GET / HTTP/1.0" 404 3234 INFO 2019-11-03 11:19:31,881 basehttp 154 "GET /invoice/ HTTP/1.0" 200 10 INFO 2019-11-03 11:20:32,044 basehttp 154 "GET /invoice HTTP/1.1" 301 0 WARNING 2019-11-03 11:20:41,040 log 228 Not Found: / WARNING 2019-11-03 11:20:41,041 basehttp 154 "HEAD / HTTP/1.1" 404 3235 WARNING 2019-11-03 11:21:39,260 log 228 Not Found: / WARNING 2019-11-03 11:21:39,260 basehttp 154 "HEAD / HTTP/1.1" 404 3235 INFO 2019-11-03 11:29:33,529 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-03 11:29:33,903 log 228 Not Found: /favicon.ico WARNING 2019-11-03 11:29:33,903 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285 INFO 2019-11-03 11:29:41,481 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-05 21:33:18,500 basehttp 154 "GET /predictpayment HTTP/1.1" 301 0 INFO 2019-11-05 21:33:20,080 basehttp 154 "GET /predictpayment/ HTTP/1.1" 200 54 WARNING 2019-11-05 21:33:20,108 log 228 Not Found: /favicon.ico WARNING 2019-11-05 21:33:20,109 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3284 INFO 2019-11-05 21:47:09,730 basehttp 154 "GET /predictpayment/ HTTP/1.1" 200 54 INFO 2019-11-05 23:00:01,830 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-05 23:00:01,930 log 228 Not Found: /favicon.ico WARNING 2019-11-05 23:00:01,930 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3280 INFO 2019-11-08 09:33:38,919 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:33:49,455 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:34:47,820 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:35:01,386 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:35:27,500 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:37:33,632 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:39:12,188 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\setting\dev.py changed, reloading. INFO 2019-11-08 09:39:12,927 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:39:19,867 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\setting\dev.py changed, reloading. INFO 2019-11-08 09:39:20,619 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:39:21,033 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:40:28,193 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\setting\dev.py changed, reloading. INFO 2019-11-08 09:40:28,892 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:40:38,901 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-08 09:40:47,636 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-09 16:06:19,043 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-09 16:06:58,214 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-09 16:14:47,264 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\urls.py changed, reloading. INFO 2019-11-09 16:14:47,923 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-09 16:19:18,966 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\urls.py changed, reloading. INFO 2019-11-09 16:19:19,699 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-11 16:16:41,670 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-11 16:17:01,982 log 228 Not Found: /favicon.ico WARNING 2019-11-11 16:17:01,982 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 77 INFO 2019-11-11 16:17:09,641 basehttp 154 "GET /sales HTTP/1.1" 301 0 INFO 2019-11-11 16:17:09,666 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-11 16:17:09,922 log 228 Not Found: /favicon.ico WARNING 2019-11-11 16:17:09,924 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 77 INFO 2019-11-11 16:17:14,643 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-11 16:32:32,833 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-11 16:32:33,757 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-11 16:33:46,402 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-11 16:33:47,295 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-11 16:37:45,902 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-11 16:37:47,798 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:37:47,902 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 ERROR 2019-11-11 16:37:57,001 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:37:57,002 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 ERROR 2019-11-11 16:38:00,350 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:38:00,350 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 INFO 2019-11-11 16:38:21,714 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-11 16:38:25,235 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:38:25,238 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 ERROR 2019-11-11 16:38:47,178 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:38:47,179 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 WARNING 2019-11-11 16:38:47,252 log 228 Not Found: /favicon.ico WARNING 2019-11-11 16:38:47,253 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 77 INFO 2019-11-11 16:39:02,780 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-11 16:39:05,535 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:39:05,536 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 ERROR 2019-11-11 16:39:06,768 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:39:06,769 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 ERROR 2019-11-11 16:39:08,320 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get return http.JsonResponse(json.dumps(context)) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__ 'In order to allow non-dict objects to be serialized set the ' TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False. ERROR 2019-11-11 16:39:08,320 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 INFO 2019-11-11 16:39:28,518 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-11 16:39:30,999 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:40:17,795 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 14:40:34,826 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:40:34,959 basehttp 154 "GET /sales/ HTTP/1.1" 500 27 ERROR 2019-11-12 14:40:34,991 log 228 Internal Server Error: /favicon.ico Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:40:34,992 basehttp 154 "GET /favicon.ico HTTP/1.1" 500 27 INFO 2019-11-12 14:41:55,920 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 14:41:59,326 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:41:59,327 basehttp 154 "GET /sales/ HTTP/1.1" 500 73496 ERROR 2019-11-12 14:41:59,575 log 228 Internal Server Error: /favicon.ico Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:41:59,577 basehttp 154 "GET /favicon.ico HTTP/1.1" 500 73597 INFO 2019-11-12 14:44:10,525 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 14:44:14,891 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:44:14,892 basehttp 154 "GET /sales/ HTTP/1.1" 500 73537 ERROR 2019-11-12 14:44:15,024 log 228 Internal Server Error: /favicon.ico Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:44:15,025 basehttp 154 "GET /favicon.ico HTTP/1.1" 500 73638 INFO 2019-11-12 14:44:44,179 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:44:45,988 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 WARNING 2019-11-12 14:44:46,053 log 228 Not Found: /favicon.ico WARNING 2019-11-12 14:44:46,054 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3280 INFO 2019-11-12 14:45:20,751 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 14:45:21,715 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:46:22,467 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:46:37,151 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:47:12,111 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:47:14,473 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:47:29,166 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:47:31,456 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:47:51,244 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:47:53,102 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:48:18,072 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:48:21,911 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:48:41,055 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:48:43,306 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:50:12,409 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 14:50:13,187 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 14:50:55,463 log 228 Forbidden: /sales/ WARNING 2019-11-12 14:50:55,464 basehttp 154 "GET /sales/ HTTP/1.1" 403 27 INFO 2019-11-12 14:52:22,141 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 14:52:23,594 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:52:51,587 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 14:54:17,547 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 14:54:18,321 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:56:21,151 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 14:56:22,161 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 14:56:34,244 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 14:57:09,461 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 11, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:57:09,463 basehttp 154 "POST /invoice/ HTTP/1.1" 500 88452 INFO 2019-11-12 14:58:18,482 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 14:58:21,405 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 12, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 14:58:21,408 basehttp 154 "POST /invoice/ HTTP/1.1" 500 88493 INFO 2019-11-12 15:00:00,823 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 15:00:03,448 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 13, in inner req_data = json.loads(request.body.decode()) File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ERROR 2019-11-12 15:00:03,449 basehttp 154 "POST /invoice/ HTTP/1.1" 500 88529 INFO 2019-11-12 15:00:47,374 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 INFO 2019-11-12 15:00:56,262 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:00:57,943 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 ERROR 2019-11-12 15:01:50,029 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post print(ZL_NO[:3]) TypeError: 'NoneType' object is not subscriptable ERROR 2019-11-12 15:01:50,036 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293 INFO 2019-11-12 15:01:58,863 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 15:02:02,319 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post print(ZL_NO[:3]) TypeError: 'NoneType' object is not subscriptable ERROR 2019-11-12 15:02:02,320 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293 INFO 2019-11-12 15:02:57,081 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 15:03:01,095 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post print(ZL_NO[:3]) TypeError: 'NoneType' object is not subscriptable ERROR 2019-11-12 15:03:01,097 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293 INFO 2019-11-12 15:03:57,379 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 15:04:00,651 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 14, in inner user = req_data.get("user") # 用户名 AttributeError: 'str' object has no attribute 'get' ERROR 2019-11-12 15:04:00,655 basehttp 154 "POST /invoice/ HTTP/1.1" 500 58094 INFO 2019-11-12 15:04:57,318 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 15:05:00,700 log 228 Internal Server Error: /sales/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 14, in inner user = req_data.get("user") # 用户名 AttributeError: 'str' object has no attribute 'get' ERROR 2019-11-12 15:05:00,701 basehttp 154 "GET /sales/ HTTP/1.1" 500 58071 INFO 2019-11-12 15:05:14,607 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:05:16,907 basehttp 154 "GET /sales/ HTTP/1.1" 200 54 ERROR 2019-11-12 15:05:58,700 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post print(ZL_NO[:3]) TypeError: 'NoneType' object is not subscriptable ERROR 2019-11-12 15:05:58,701 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293 INFO 2019-11-12 15:06:40,324 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-12 15:06:43,978 log 228 Internal Server Error: /invoice/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 71, in post if ZL_NO[:3] != 'LPF' or len(ZL_NO) != 10: TypeError: 'NoneType' object is not subscriptable ERROR 2019-11-12 15:06:43,980 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84325 INFO 2019-11-12 15:06:56,069 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py changed, reloading. INFO 2019-11-12 15:06:57,864 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:08:48,355 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:09:09,420 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:09:09,421 basehttp 154 "POST /invoice/ HTTP/1.1" 403 16 INFO 2019-11-12 15:10:23,366 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 15:10:24,156 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:11:13,161 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:11:16,082 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:11:16,083 basehttp 154 "POST /invoice/ HTTP/1.1" 403 27 INFO 2019-11-12 15:12:53,101 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 15:12:53,904 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:13:17,786 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:13:26,023 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:13:26,024 basehttp 154 "POST /invoice/ HTTP/1.1" 403 27 INFO 2019-11-12 15:14:16,843 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:14:19,319 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:14:19,320 basehttp 154 "POST /invoice/ HTTP/1.1" 403 27 INFO 2019-11-12 15:15:41,239 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:15:44,018 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:15:44,018 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-11-12 15:15:52,636 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:15:52,638 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-11-12 15:16:08,616 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:16:08,616 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 WARNING 2019-11-12 15:16:21,275 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:16:21,276 basehttp 154 "POST /invoice/ HTTP/1.1" 403 18 INFO 2019-11-12 15:17:29,140 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:17:51,169 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 WARNING 2019-11-12 15:18:49,024 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:18:49,025 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 WARNING 2019-11-12 15:19:43,121 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:19:43,121 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 INFO 2019-11-12 15:20:26,760 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:20:29,834 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:20:29,835 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 15 WARNING 2019-11-12 15:20:49,384 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:20:49,384 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21 INFO 2019-11-12 15:21:19,639 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27 INFO 2019-11-12 15:22:23,031 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading. INFO 2019-11-12 15:22:24,106 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:37:34,924 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:38:19,360 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:38:19,361 basehttp 154 "POST /invoice/ HTTP/1.1" 403 2868 INFO 2019-11-12 15:38:59,231 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 15:39:03,593 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25 INFO 2019-11-12 15:39:12,325 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:39:15,126 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:39:15,128 basehttp 154 "POST /invoice/ HTTP/1.1" 403 2868 WARNING 2019-11-12 15:40:51,787 log 228 Forbidden: /invoice/ WARNING 2019-11-12 15:40:51,787 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 18 WARNING 2019-11-12 15:41:12,896 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:41:12,896 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868 WARNING 2019-11-12 15:44:11,969 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:44:11,969 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868 WARNING 2019-11-12 15:50:04,312 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:50:04,313 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868 INFO 2019-11-12 15:50:17,119 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:53:05,171 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:53:05,172 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868 WARNING 2019-11-12 15:53:44,032 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:53:44,033 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868 INFO 2019-11-12 15:54:05,117 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 15:54:30,324 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 15:54:30,325 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868 INFO 2019-11-12 16:19:49,910 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 16:20:27,691 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 16:22:12,626 log 228 Forbidden (CSRF cookie not set.): /invoice/ WARNING 2019-11-12 16:22:12,627 basehttp 154 "POST /invoice/ HTTP/1.1" 403 2868 INFO 2019-11-12 16:22:39,263 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 16:23:05,093 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 16:23:21,755 log 228 Forbidden: /invoice/ WARNING 2019-11-12 16:23:21,755 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21 INFO 2019-11-12 16:24:40,820 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 INFO 2019-11-12 16:44:35,511 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 ERROR 2019-11-12 16:44:51,952 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CHK_MAN' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CLS_DATE' 无效。 (207); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 395, in post row_usr = usr_data(USR, USR_NAME, datetime.datetime.strptime(RP_DD, '%Y-%m-%d')) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\usr_data.py", line 13, in usr_data cursor.execute("INSERT INTO SALM(SAL_NO,[NAME],USR,CHK_MAN,CLS_DATE,SYS_DATE)VALUES (%s,%s,'ADMIN','ADMIN',%s,%s)", [USR, USR_NAME,DATE,DATE]) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CHK_MAN' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CLS_DATE' 无效。 (207); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)") ERROR 2019-11-12 16:44:51,956 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 133940 INFO 2019-11-12 16:48:07,723 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\usr_data.py changed, reloading. INFO 2019-11-12 16:48:08,489 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 16:49:09,677 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 16:49:14,521 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43 INFO 2019-11-12 16:51:02,232 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 17:01:00,950 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-12 17:01:01,942 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 17:05:43,200 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-12 17:05:44,417 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 17:06:24,227 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-12 17:06:25,264 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 17:09:35,337 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-12 17:09:36,256 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 17:10:12,277 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-12 17:10:13,064 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 17:11:18,793 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-12 17:13:01,256 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-12 17:13:04,170 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-12 17:13:04,171 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24 WARNING 2019-11-12 17:13:11,723 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-12 17:13:11,725 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 21 INFO 2019-11-13 09:19:57,023 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 09:21:04,056 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:21:04,056 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 30 ERROR 2019-11-13 09:21:16,725 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 388, in post sum_CACC_NO=et_CACC_NO(CACC_NO) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py", line 21, in et_CACC_NO SUM_CACC_NO = cursor.execute(sql).fetchall()[0][0] File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") ERROR 2019-11-13 09:21:16,728 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 129920 INFO 2019-11-13 09:22:20,447 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:22:24,316 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 388, in post sum_CACC_NO=et_CACC_NO(CACC_NO) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py", line 22, in et_CACC_NO SUM_CACC_NO = cursor.execute(sql).fetchall()[0][0] File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") ERROR 2019-11-13 09:22:24,319 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 129926 WARNING 2019-11-13 09:22:54,159 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:22:54,160 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 30 INFO 2019-11-13 09:23:11,800 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py changed, reloading. INFO 2019-11-13 09:23:12,555 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 09:23:18,851 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 09:23:21,004 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:23:21,004 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 30 ERROR 2019-11-13 09:23:29,487 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 388, in post sum_CACC_NO=et_CACC_NO(CACC_NO) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py", line 22, in et_CACC_NO SUM_CACC_NO = cursor.execute(sql).fetchall()[0][0] File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute return super().execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute return self.cursor.execute(sql) File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)") ERROR 2019-11-13 09:23:29,490 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 129912 INFO 2019-11-13 09:23:58,046 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:24:00,932 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 389, in post if sum_CACC_NO <=0: TypeError: '<=' not supported between instances of 'HttpResponseForbidden' and 'int' ERROR 2019-11-13 09:24:00,933 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 85820 INFO 2019-11-13 09:26:39,132 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:26:56,637 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:26:56,641 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86319 INFO 2019-11-13 09:28:39,553 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:28:42,917 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:28:42,918 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:29:10,905 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:29:15,364 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:29:15,365 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:32:18,835 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:32:22,715 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:32:22,717 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:34:12,207 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:34:15,270 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 408, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:34:15,272 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:34:43,791 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:34:48,049 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:34:48,050 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:35:15,342 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:35:18,687 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:35:18,689 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:35:41,580 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:35:45,021 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:35:45,024 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:36:21,091 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:36:25,861 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:36:25,862 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514 INFO 2019-11-13 09:37:08,687 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:37:12,871 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:37:12,872 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86462 INFO 2019-11-13 09:37:32,747 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 09:37:36,237 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:37:36,237 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24 INFO 2019-11-13 09:38:12,641 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 09:38:13,462 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 09:38:22,592 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:38:22,592 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24 INFO 2019-11-13 09:39:04,964 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 09:39:05,745 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 09:39:17,523 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py changed, reloading. INFO 2019-11-13 09:39:18,229 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 09:39:25,431 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 09:39:26,303 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 09:39:26,970 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 09:39:31,533 autoreload 597 Watching for file changes with StatReloader ERROR 2019-11-13 09:39:34,146 log 228 Internal Server Error: /expectedpoperation/ Traceback (most recent call last): File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner return func(*args, **kwds) File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 408, in post Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0] IndexError: list index out of range ERROR 2019-11-13 09:39:34,149 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86520 INFO 2019-11-13 09:40:22,867 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading. INFO 2019-11-13 09:40:23,643 autoreload 597 Watching for file changes with StatReloader INFO 2019-11-13 09:40:37,698 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py changed, reloading. INFO 2019-11-13 09:40:38,412 autoreload 597 Watching for file changes with StatReloader WARNING 2019-11-13 09:40:43,633 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:40:43,633 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 57 WARNING 2019-11-13 09:40:50,145 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:40:50,146 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 57 WARNING 2019-11-13 09:40:53,502 log 228 Forbidden: /expectedpoperation/ WARNING 2019-11-13 09:40:53,502 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 57 INFO 2019-11-13 09:48:22,677 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading. INFO 2019-11-13 09:48:23,417 autoreload 597 Watching for file changes with StatReloader >>>>>>> 9ef74b8a8327dc14dd5b9d31dabf1eaf7e92f2ab