123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884 |
- INFO 2019-10-17 10:11:05,598 basehttp 124 "GET /areas/ HTTP/1.1" 200 10
- INFO 2019-10-17 13:26:27,171 autoreload 597 Watching for file changes with StatReloader
- INFO 2019-10-17 13:27:09,435 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\setting\dev.py changed, reloading.
- INFO 2019-10-17 13:27:10,260 autoreload 597 Watching for file changes with StatReloader
- INFO 2019-10-17 13:27:35,090 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\setting\dev.py changed, reloading.
- INFO 2019-10-17 13:27:35,938 autoreload 597 Watching for file changes with StatReloader
- INFO 2019-10-17 13:28:06,660 autoreload 597 Watching for file changes with StatReloader
- INFO 2019-10-17 13:28:39,906 autoreload 597 Watching for file changes with StatReloader
- WARNING 2019-10-17 14:12:35,299 log 228 Not Found: /areas/
- WARNING 2019-10-17 14:12:35,300 basehttp 154 "GET /areas/ HTTP/1.1" 404 1955
- WARNING 2019-10-17 14:12:37,216 log 228 Not Found: /areas/
- WARNING 2019-10-17 14:12:37,216 basehttp 154 "GET /areas/ HTTP/1.1" 404 1955
- INFO 2019-10-17 14:15:22,231 basehttp 154 "GET /areas/ HTTP/1.1" 200 10
- INFO 2019-10-17 14:15:45,505 basehttp 154 "GET /areas/ HTTP/1.1" 200 10
- ERROR 2019-10-17 14:21:46,626 log 228 Internal Server Error: /areas/
- 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 11, in get
- with connection.cursor() as cursor:
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 255, in cursor
- return self._cursor()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 232, in _cursor
- self.ensure_connection()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 216, in ensure_connection
- self.connect()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 196, in connect
- self.init_connection_state()
- File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 365, in init_connection_state
- "The database driver doesn't support modern datatime types.")
- django.core.exceptions.ImproperlyConfigured: The database driver doesn't support modern datatime types.
- ERROR 2019-10-17 14:21:46,628 basehttp 154 "GET /areas/ HTTP/1.1" 500 99869
- ERROR 2019-10-17 14:22:09,101 log 228 Internal Server Error: /areas/
- 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 11, in get
- with connection.cursor() as cursor:
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 255, in cursor
- return self._cursor()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 232, in _cursor
- self.ensure_connection()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 216, in ensure_connection
- self.connect()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 196, in connect
- self.init_connection_state()
- File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 365, in init_connection_state
- "The database driver doesn't support modern datatime types.")
- django.core.exceptions.ImproperlyConfigured: The database driver doesn't support modern datatime types.
- ERROR 2019-10-17 14:22:09,103 basehttp 154 "GET /areas/ HTTP/1.1" 500 99864
- ERROR 2019-10-17 14:23:11,195 log 228 Internal Server Error: /areas/
- 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 11, in get
- with connection.cursor() as cursor:
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 255, in cursor
- return self._cursor()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 232, in _cursor
- self.ensure_connection()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 216, in ensure_connection
- self.connect()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 196, in connect
- self.init_connection_state()
- File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 365, in init_connection_state
- "The database driver doesn't support modern datatime types.")
- django.core.exceptions.ImproperlyConfigured: The database driver doesn't support modern datatime types.
- ERROR 2019-10-17 14:23:11,197 basehttp 154 "GET /areas/ HTTP/1.1" 500 99866
- ERROR 2019-10-17 14:23:55,955 log 228 Internal Server Error: /areas/
- 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 11, in get
- with connection.cursor() as cursor:
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 255, in cursor
- return self._cursor()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 232, in _cursor
- self.ensure_connection()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 216, in ensure_connection
- self.connect()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 196, in connect
- self.init_connection_state()
- File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 365, in init_connection_state
- "The database driver doesn't support modern datatime types.")
- django.core.exceptions.ImproperlyConfigured: The database driver doesn't support modern datatime types.
- ERROR 2019-10-17 14:23:55,957 basehttp 154 "GET /areas/ HTTP/1.1" 500 99876
- ERROR 2019-10-17 14:24:23,614 log 228 Internal Server Error: /areas/
- 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 11, in get
- with connection.cursor() as cursor:
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 255, in cursor
- return self._cursor()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 232, in _cursor
- self.ensure_connection()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 216, in ensure_connection
- self.connect()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 196, in connect
- self.init_connection_state()
- File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 365, in init_connection_state
- "The database driver doesn't support modern datatime types.")
- django.core.exceptions.ImproperlyConfigured: The database driver doesn't support modern datatime types.
- ERROR 2019-10-17 14:24:23,615 basehttp 154 "GET /areas/ HTTP/1.1" 500 99876
- ERROR 2019-10-17 14:26:39,285 log 228 Internal Server Error: /areas/
- 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 14, in get
- with connection.cursor() as cursor:
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 255, in cursor
- return self._cursor()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 232, in _cursor
- self.ensure_connection()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 216, in ensure_connection
- self.connect()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 196, in connect
- self.init_connection_state()
- File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 365, in init_connection_state
- "The database driver doesn't support modern datatime types.")
- django.core.exceptions.ImproperlyConfigured: The database driver doesn't support modern datatime types.
- ERROR 2019-10-17 14:26:39,287 basehttp 154 "GET /areas/ HTTP/1.1" 500 100119
- ERROR 2019-10-17 14:29:28,143 log 228 Internal Server Error: /areas/
- 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 11, in get
- with connection.cursor() as cursor:
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 255, in cursor
- return self._cursor()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 232, in _cursor
- self.ensure_connection()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 216, in ensure_connection
- self.connect()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 196, in connect
- self.init_connection_state()
- File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 365, in init_connection_state
- "The database driver doesn't support modern datatime types.")
- django.core.exceptions.ImproperlyConfigured: The database driver doesn't support modern datatime types.
- ERROR 2019-10-17 14:29:28,145 basehttp 154 "GET /areas/ HTTP/1.1" 500 99876
- ERROR 2019-10-17 14:36:51,606 log 228 Internal Server Error: /areas/
- 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 11, in get
- with connection.cursor() as cursor:
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 255, in cursor
- return self._cursor()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 232, in _cursor
- self.ensure_connection()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 216, in ensure_connection
- self.connect()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 196, in connect
- self.init_connection_state()
- File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 365, in init_connection_state
- "The database driver doesn't support modern datatime types.")
- django.core.exceptions.ImproperlyConfigured: The database driver doesn't support modern datatime types.
- ERROR 2019-10-17 14:36:51,608 basehttp 154 "GET /areas/ HTTP/1.1" 500 99792
- ERROR 2019-10-17 14:38:25,722 log 228 Internal Server Error: /areas/
- 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 12, in get
- cursor = connection.cursor()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 255, in cursor
- return self._cursor()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 232, in _cursor
- self.ensure_connection()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 216, in ensure_connection
- self.connect()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 196, in connect
- self.init_connection_state()
- File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 365, in init_connection_state
- "The database driver doesn't support modern datatime types.")
- django.core.exceptions.ImproperlyConfigured: The database driver doesn't support modern datatime types.
- ERROR 2019-10-17 14:38:25,723 basehttp 154 "GET /areas/ HTTP/1.1" 500 99949
- ERROR 2019-10-17 14:44:01,821 log 228 Internal Server Error: /areas/
- 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 12, in get
- cursor = connection.cursor()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 255, in cursor
- return self._cursor()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 232, in _cursor
- self.ensure_connection()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 216, in ensure_connection
- self.connect()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 196, in connect
- self.init_connection_state()
- File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 365, in init_connection_state
- "The database driver doesn't support modern datatime types.")
- django.core.exceptions.ImproperlyConfigured: The database driver doesn't support modern datatime types.
- ERROR 2019-10-17 14:44:01,823 basehttp 154 "GET /areas/ HTTP/1.1" 500 99949
- ERROR 2019-10-17 14:46:00,691 log 228 Internal Server Error: /areas/
- 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 11, in get
- with connection.cursor() as cursor:
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 255, in cursor
- return self._cursor()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 232, in _cursor
- self.ensure_connection()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 216, in ensure_connection
- self.connect()
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\base\base.py", line 196, in connect
- self.init_connection_state()
- File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 365, in init_connection_state
- "The database driver doesn't support modern datatime types.")
- django.core.exceptions.ImproperlyConfigured: The database driver doesn't support modern datatime types.
- ERROR 2019-10-17 14:46:00,693 basehttp 154 "GET /areas/ HTTP/1.1" 500 100396
- WARNING 2019-10-17 14:46:00,830 log 228 Not Found: /favicon.ico
- WARNING 2019-10-17 14:46:00,832 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 2126
- INFO 2019-10-17 14:48:52,834 basehttp 154 "GET /areas/ HTTP/1.1" 200 10
- INFO 2019-10-17 14:52:36,899 basehttp 154 "GET /areas/ HTTP/1.1" 200 10
- INFO 2019-10-17 16:21:08,859 basehttp 154 "GET /areas/ HTTP/1.1" 200 10
- WARNING 2019-10-17 17:33:38,727 log 228 Forbidden (CSRF cookie not set.): /areas/
- WARNING 2019-10-17 17:33:38,727 basehttp 154 "POST /areas/ HTTP/1.1" 403 2868
- INFO 2019-10-17 17:33:42,872 basehttp 154 "GET /areas/ HTTP/1.1" 200 10
- INFO 2019-10-17 17:34:25,001 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
- WARNING 2019-10-17 17:40:06,205 log 228 Forbidden (CSRF cookie not set.): /invoice/
- WARNING 2019-10-17 17:40:06,206 basehttp 154 "POST /invoice/ HTTP/1.1" 403 2868
- ERROR 2019-10-17 17:40:59,373 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 137, in _get_response
- "returned None instead." % (callback.__module__, view_name)
- ValueError: The view stockinvoice.views.InvoiceView didn't return an HttpResponse object. It returned None instead.
- ERROR 2019-10-17 17:40:59,374 basehttp 154 "POST /invoice/ HTTP/1.1" 500 61366
- INFO 2019-10-17 17:42:00,134 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- ERROR 2019-10-17 17:44:11,957 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 581, in fetchone
- row = self.cursor.fetchone()
- 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 14, in get
- row = cursor.fetchone()
- 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 581, in fetchone
- row = self.cursor.fetchone()
- django.db.utils.ProgrammingError: No results. Previous SQL was not a query.
- ERROR 2019-10-17 17:44:11,959 basehttp 154 "GET /invoice/ HTTP/1.1" 500 102978
- ERROR 2019-10-17 17:45:20,027 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 581, in fetchone
- row = self.cursor.fetchone()
- 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 14, in get
- row = cursor.fetchone()
- 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 581, in fetchone
- row = self.cursor.fetchone()
- django.db.utils.ProgrammingError: No results. Previous SQL was not a query.
- ERROR 2019-10-17 17:45:20,028 basehttp 154 "GET /invoice/ HTTP/1.1" 500 103115
- INFO 2019-10-17 17:45:40,818 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
- ERROR 2019-10-17 17:47:14,790 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 581, in fetchone
- row = self.cursor.fetchone()
- 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 14, in get
- row = cursor.fetchone()
- 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 581, in fetchone
- row = self.cursor.fetchone()
- django.db.utils.ProgrammingError: No results. Previous SQL was not a query.
- ERROR 2019-10-17 17:47:14,792 basehttp 154 "GET /invoice/ HTTP/1.1" 500 103115
- ERROR 2019-10-17 17:47:52,312 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 581, in fetchone
- row = self.cursor.fetchone()
- 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 14, in get
- row = cursor.fetchone()
- 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 581, in fetchone
- row = self.cursor.fetchone()
- django.db.utils.ProgrammingError: No results. Previous SQL was not a query.
- ERROR 2019-10-17 17:47:52,314 basehttp 154 "GET /invoice/ HTTP/1.1" 500 103117
- ERROR 2019-10-17 17:52:52,408 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 14, 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-17 17:52:52,409 basehttp 154 "GET /invoice/ HTTP/1.1" 500 102677
- INFO 2019-10-17 17:59:44,327 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
- INFO 2019-10-17 18:00:03,991 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
- INFO 2019-10-17 18:01:04,025 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
- INFO 2019-10-17 18:01:52,909 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- ERROR 2019-10-17 18:03:36,505 log 228 Internal Server Error: /invoice/
- Traceback (most recent call last):
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 83, in _execute
- return self.cursor.execute(sql)
- 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]列名 'CUS_NO' 无效。 (207) (SQLExecDirectW)")
- 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 12, in get
- cursor.execute("INSERT INTO PRDT(CUS_NO,NAME)VALUES ('QQ12345','DSDADADA')")
- 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 83, in _execute
- return self.cursor.execute(sql)
- 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]列名 'CUS_NO' 无效。 (207) (SQLExecDirectW)")
- ERROR 2019-10-17 18:03:36,507 basehttp 154 "GET /invoice/ HTTP/1.1" 500 119454
- ERROR 2019-10-17 18:04:03,824 log 228 Internal Server Error: /invoice/
- Traceback (most recent call last):
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 83, in _execute
- return self.cursor.execute(sql)
- 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]'`' 附近有语法错误。 (102) (SQLExecDirectW)")
- 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 12, in get
- cursor.execute("INSERT INTO PRDT(CUS_NO,`NAME`)VALUES ('QQ12345','DSDADADA')")
- 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 83, in _execute
- return self.cursor.execute(sql)
- 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]'`' 附近有语法错误。 (102) (SQLExecDirectW)")
- ERROR 2019-10-17 18:04:03,825 basehttp 154 "GET /invoice/ HTTP/1.1" 500 119498
- ERROR 2019-10-17 18:05:23,538 log 228 Internal Server Error: /invoice/
- Traceback (most recent call last):
- File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 83, in _execute
- return self.cursor.execute(sql)
- 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]列名 'CUS_NO' 无效。 (207) (SQLExecDirectW)")
- 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 12, in get
- cursor.execute("INSERT INTO PRDT(CUS_NO,[NAME])VALUES ('QQ12345','DSDADADA')")
- 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 83, in _execute
- return self.cursor.execute(sql)
- 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]列名 'CUS_NO' 无效。 (207) (SQLExecDirectW)")
- ERROR 2019-10-17 18:05:23,540 basehttp 154 "GET /invoice/ HTTP/1.1" 500 119474
- ERROR 2019-10-17 18:06:14,326 log 228 Internal Server Error: /invoice/
- 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]列名 'CUS_NO' 无效。 (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\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 12, in get
- cursor.execute("INSERT INTO PRDT(CUS_NO,[NAME])VALUES ('QQ12345',%s)",[a])
- 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]列名 'CUS_NO' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
- ERROR 2019-10-17 18:06:14,328 basehttp 154 "GET /invoice/ HTTP/1.1" 500 120137
- INFO 2019-10-17 18:06:36,521 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
- INFO 2019-10-17 21:27:12,877 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:08:39,806 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:11:55,840 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:12:22,921 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:12:43,199 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:13:51,143 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- ERROR 2019-10-17 22:15:09,179 log 228 Internal Server Error: /invoice/
- 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: ('42S02', "[42S02] [Microsoft][SQL Server Native Client 10.0][SQL Server]对象名 'SLAM' 无效。 (208) (SQLExecDirectW); [42S02] [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\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 54, in post
- row_usr = cursor.execute("SELECT COUNT(*) FROM SLAM WHERE CUS_NO=%s",[USR]).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: ('42S02', "[42S02] [Microsoft][SQL Server Native Client 10.0][SQL Server]对象名 'SLAM' 无效。 (208) (SQLExecDirectW); [42S02] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
- ERROR 2019-10-17 22:15:09,183 basehttp 154 "POST /invoice/ HTTP/1.1" 500 124347
- ERROR 2019-10-17 22:15:33,723 log 228 Internal Server Error: /invoice/
- 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: ('42S02', "[42S02] [Microsoft][SQL Server Native Client 10.0][SQL Server]对象名 'SLAM' 无效。 (208) (SQLExecDirectW); [42S02] [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\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 54, in post
- row_usr = cursor.execute("SELECT COUNT(*) FROM SLAM WHERE SAL_NO=%s",[USR]).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: ('42S02', "[42S02] [Microsoft][SQL Server Native Client 10.0][SQL Server]对象名 'SLAM' 无效。 (208) (SQLExecDirectW); [42S02] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
- ERROR 2019-10-17 22:15:33,727 basehttp 154 "POST /invoice/ HTTP/1.1" 500 124350
- INFO 2019-10-17 22:16:30,085 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:19:35,485 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:19:41,014 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:22:30,127 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:22:32,199 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:31:58,427 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:32:25,280 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:32:37,349 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:32:56,619 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:34:21,074 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:56:34,519 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:57:58,780 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:58:01,718 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:58:30,375 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:58:46,584 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- INFO 2019-10-17 22:59:12,091 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
- WARNING 2019-10-17 23:07:47,139 log 228 Forbidden: /invoice/
- WARNING 2019-10-17 23:07:47,140 basehttp 154 "POST /invoice/ HTTP/1.1" 403 12
- ERROR 2019-10-17 23:14:23,137 log 228 Internal Server Error: /invoice/
- 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\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\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-17 23:14:23,139 basehttp 154 "POST /invoice/ HTTP/1.1" 500 129497
- ERROR 2019-10-17 23:15:02,233 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\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 78, in post
- VALUES('PC',%s,%s,'0000','AQ001',,1,1,%f,%f,5,1,1,%f)""", ['PC'+ZL_NO[2::], datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'),AMT,AMT,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\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: must be real number, not str
- ERROR 2019-10-17 23:15:02,235 basehttp 154 "POST /invoice/ HTTP/1.1" 500 111057
- ERROR 2019-10-17 23:17:43,751 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\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 78, in post
- VALUES('PC',%s,%s,'0000','AQ001',1,1,%f,%f,5,1,1,%f)""", ['PC'+ZL_NO[2::], datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'),AMT,AMT,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\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: must be real number, not str
- ERROR 2019-10-17 23:17:43,754 basehttp 154 "POST /invoice/ HTTP/1.1" 500 111047
- ERROR 2019-10-17 23:24:18,477 log 228 Internal Server Error: /invoice/
- 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\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\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-17 23:24:18,480 basehttp 154 "POST /invoice/ HTTP/1.1" 500 129530
- INFO 2019-10-17 23:24:39,910 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
|