error.log 211 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160
  1. [2025-02-27 19:25:06,762][django.request.log_response():241] [ERROR] Internal Server Error: /warehouse/multiple/
  2. Traceback (most recent call last):
  3. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  4. return self.cursor.execute(sql, params)
  5. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  6. return Database.Cursor.execute(self, query, params)
  7. sqlite3.OperationalError: no such table: warehouse
  8. The above exception was the direct cause of the following exception:
  9. Traceback (most recent call last):
  10. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  11. raise exc_info[1]
  12. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  13. response = await get_response(request)
  14. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  15. response = await wrapped_callback(
  16. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  17. ret = await asyncio.wait_for(future, timeout=None)
  18. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  19. return await fut
  20. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  21. result = self.fn(*self.args, **self.kwargs)
  22. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  23. return func(*args, **kwargs)
  24. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  25. return view_func(*args, **kwargs)
  26. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  27. return self.dispatch(request, *args, **kwargs)
  28. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  29. response = self.handle_exception(exc)
  30. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  31. self.raise_uncaught_exception(exc)
  32. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  33. raise exc
  34. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  35. response = handler(request, *args, **kwargs)
  36. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 40, in list
  37. page = self.paginate_queryset(queryset)
  38. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 171, in paginate_queryset
  39. return self.paginator.paginate_queryset(queryset, self.request, view=self)
  40. File "/usr/local/lib/python3.10/dist-packages/rest_framework/pagination.py", line 204, in paginate_queryset
  41. self.page = paginator.page(page_number)
  42. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 75, in page
  43. number = self.validate_number(number)
  44. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 53, in validate_number
  45. if number > self.num_pages:
  46. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  47. res = instance.__dict__[self.name] = self.func(instance)
  48. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 102, in num_pages
  49. if self.count == 0 and not self.allow_empty_first_page:
  50. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  51. res = instance.__dict__[self.name] = self.func(instance)
  52. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 96, in count
  53. return c()
  54. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 621, in count
  55. return self.query.get_count(using=self.db)
  56. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 559, in get_count
  57. return obj.get_aggregation(using, ["__count"])["__count"]
  58. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 544, in get_aggregation
  59. result = compiler.execute_sql(SINGLE)
  60. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  61. cursor.execute(sql, params)
  62. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  63. return super().execute(sql, params)
  64. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  65. return self._execute_with_wrappers(
  66. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  67. return executor(sql, params, many, context)
  68. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  69. with self.db.wrap_database_errors:
  70. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  71. raise dj_exc_value.with_traceback(traceback) from exc_value
  72. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  73. return self.cursor.execute(sql, params)
  74. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  75. return Database.Cursor.execute(self, query, params)
  76. django.db.utils.OperationalError: no such table: warehouse
  77. [2025-02-27 19:25:13,560][django.request.log_response():241] [ERROR] Internal Server Error: /warehouse/multiple/
  78. Traceback (most recent call last):
  79. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  80. return self.cursor.execute(sql, params)
  81. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  82. return Database.Cursor.execute(self, query, params)
  83. sqlite3.OperationalError: no such table: warehouse
  84. The above exception was the direct cause of the following exception:
  85. Traceback (most recent call last):
  86. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  87. raise exc_info[1]
  88. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  89. response = await get_response(request)
  90. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  91. response = await wrapped_callback(
  92. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  93. ret = await asyncio.wait_for(future, timeout=None)
  94. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  95. return await fut
  96. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  97. result = self.fn(*self.args, **self.kwargs)
  98. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  99. return func(*args, **kwargs)
  100. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  101. return view_func(*args, **kwargs)
  102. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  103. return self.dispatch(request, *args, **kwargs)
  104. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  105. response = self.handle_exception(exc)
  106. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  107. self.raise_uncaught_exception(exc)
  108. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  109. raise exc
  110. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  111. response = handler(request, *args, **kwargs)
  112. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 40, in list
  113. page = self.paginate_queryset(queryset)
  114. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 171, in paginate_queryset
  115. return self.paginator.paginate_queryset(queryset, self.request, view=self)
  116. File "/usr/local/lib/python3.10/dist-packages/rest_framework/pagination.py", line 204, in paginate_queryset
  117. self.page = paginator.page(page_number)
  118. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 75, in page
  119. number = self.validate_number(number)
  120. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 53, in validate_number
  121. if number > self.num_pages:
  122. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  123. res = instance.__dict__[self.name] = self.func(instance)
  124. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 102, in num_pages
  125. if self.count == 0 and not self.allow_empty_first_page:
  126. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  127. res = instance.__dict__[self.name] = self.func(instance)
  128. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 96, in count
  129. return c()
  130. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 621, in count
  131. return self.query.get_count(using=self.db)
  132. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 559, in get_count
  133. return obj.get_aggregation(using, ["__count"])["__count"]
  134. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 544, in get_aggregation
  135. result = compiler.execute_sql(SINGLE)
  136. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  137. cursor.execute(sql, params)
  138. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  139. return super().execute(sql, params)
  140. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  141. return self._execute_with_wrappers(
  142. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  143. return executor(sql, params, many, context)
  144. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  145. with self.db.wrap_database_errors:
  146. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  147. raise dj_exc_value.with_traceback(traceback) from exc_value
  148. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  149. return self.cursor.execute(sql, params)
  150. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  151. return Database.Cursor.execute(self, query, params)
  152. django.db.utils.OperationalError: no such table: warehouse
  153. [2025-02-28 10:56:42,709][django.request.log_response():241] [ERROR] Internal Server Error: /warehouse/multiple/
  154. Traceback (most recent call last):
  155. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  156. return self.cursor.execute(sql, params)
  157. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  158. return Database.Cursor.execute(self, query, params)
  159. sqlite3.OperationalError: no such table: warehouse
  160. The above exception was the direct cause of the following exception:
  161. Traceback (most recent call last):
  162. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  163. raise exc_info[1]
  164. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  165. response = await get_response(request)
  166. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  167. response = await wrapped_callback(
  168. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  169. ret = await asyncio.wait_for(future, timeout=None)
  170. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  171. return await fut
  172. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  173. result = self.fn(*self.args, **self.kwargs)
  174. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  175. return func(*args, **kwargs)
  176. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  177. return view_func(*args, **kwargs)
  178. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  179. return self.dispatch(request, *args, **kwargs)
  180. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  181. response = self.handle_exception(exc)
  182. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  183. self.raise_uncaught_exception(exc)
  184. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  185. raise exc
  186. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  187. response = handler(request, *args, **kwargs)
  188. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 40, in list
  189. page = self.paginate_queryset(queryset)
  190. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 171, in paginate_queryset
  191. return self.paginator.paginate_queryset(queryset, self.request, view=self)
  192. File "/usr/local/lib/python3.10/dist-packages/rest_framework/pagination.py", line 204, in paginate_queryset
  193. self.page = paginator.page(page_number)
  194. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 75, in page
  195. number = self.validate_number(number)
  196. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 53, in validate_number
  197. if number > self.num_pages:
  198. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  199. res = instance.__dict__[self.name] = self.func(instance)
  200. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 102, in num_pages
  201. if self.count == 0 and not self.allow_empty_first_page:
  202. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  203. res = instance.__dict__[self.name] = self.func(instance)
  204. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 96, in count
  205. return c()
  206. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 621, in count
  207. return self.query.get_count(using=self.db)
  208. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 559, in get_count
  209. return obj.get_aggregation(using, ["__count"])["__count"]
  210. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 544, in get_aggregation
  211. result = compiler.execute_sql(SINGLE)
  212. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  213. cursor.execute(sql, params)
  214. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  215. return super().execute(sql, params)
  216. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  217. return self._execute_with_wrappers(
  218. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  219. return executor(sql, params, many, context)
  220. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  221. with self.db.wrap_database_errors:
  222. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  223. raise dj_exc_value.with_traceback(traceback) from exc_value
  224. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  225. return self.cursor.execute(sql, params)
  226. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  227. return Database.Cursor.execute(self, query, params)
  228. django.db.utils.OperationalError: no such table: warehouse
  229. [2025-02-28 10:59:12,958][django.request.log_response():241] [ERROR] Internal Server Error: /warehouse/multiple/
  230. Traceback (most recent call last):
  231. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  232. return self.cursor.execute(sql, params)
  233. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  234. return Database.Cursor.execute(self, query, params)
  235. sqlite3.OperationalError: no such table: warehouse
  236. The above exception was the direct cause of the following exception:
  237. Traceback (most recent call last):
  238. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  239. raise exc_info[1]
  240. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  241. response = await get_response(request)
  242. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  243. response = await wrapped_callback(
  244. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  245. ret = await asyncio.wait_for(future, timeout=None)
  246. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  247. return await fut
  248. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  249. result = self.fn(*self.args, **self.kwargs)
  250. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  251. return func(*args, **kwargs)
  252. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  253. return view_func(*args, **kwargs)
  254. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  255. return self.dispatch(request, *args, **kwargs)
  256. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  257. response = self.handle_exception(exc)
  258. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  259. self.raise_uncaught_exception(exc)
  260. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  261. raise exc
  262. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  263. response = handler(request, *args, **kwargs)
  264. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 40, in list
  265. page = self.paginate_queryset(queryset)
  266. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 171, in paginate_queryset
  267. return self.paginator.paginate_queryset(queryset, self.request, view=self)
  268. File "/usr/local/lib/python3.10/dist-packages/rest_framework/pagination.py", line 204, in paginate_queryset
  269. self.page = paginator.page(page_number)
  270. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 75, in page
  271. number = self.validate_number(number)
  272. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 53, in validate_number
  273. if number > self.num_pages:
  274. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  275. res = instance.__dict__[self.name] = self.func(instance)
  276. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 102, in num_pages
  277. if self.count == 0 and not self.allow_empty_first_page:
  278. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  279. res = instance.__dict__[self.name] = self.func(instance)
  280. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 96, in count
  281. return c()
  282. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 621, in count
  283. return self.query.get_count(using=self.db)
  284. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 559, in get_count
  285. return obj.get_aggregation(using, ["__count"])["__count"]
  286. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 544, in get_aggregation
  287. result = compiler.execute_sql(SINGLE)
  288. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  289. cursor.execute(sql, params)
  290. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  291. return super().execute(sql, params)
  292. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  293. return self._execute_with_wrappers(
  294. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  295. return executor(sql, params, many, context)
  296. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  297. with self.db.wrap_database_errors:
  298. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  299. raise dj_exc_value.with_traceback(traceback) from exc_value
  300. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  301. return self.cursor.execute(sql, params)
  302. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  303. return Database.Cursor.execute(self, query, params)
  304. django.db.utils.OperationalError: no such table: warehouse
  305. [2025-02-28 10:59:24,215][django.request.log_response():241] [ERROR] Internal Server Error: /register/
  306. Traceback (most recent call last):
  307. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  308. return self.cursor.execute(sql, params)
  309. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  310. return Database.Cursor.execute(self, query, params)
  311. sqlite3.OperationalError: no such table: user_profile
  312. The above exception was the direct cause of the following exception:
  313. Traceback (most recent call last):
  314. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  315. raise exc_info[1]
  316. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  317. response = await get_response(request)
  318. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  319. response = await wrapped_callback(
  320. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  321. ret = await asyncio.wait_for(future, timeout=None)
  322. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  323. return await fut
  324. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  325. result = self.fn(*self.args, **self.kwargs)
  326. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  327. return func(*args, **kwargs)
  328. File "/usr/local/lib/python3.10/dist-packages/django/utils/decorators.py", line 46, in _wrapper
  329. return bound_method(*args, **kwargs)
  330. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  331. return view_func(*args, **kwargs)
  332. File "/home/flower/code/vue_ws/greater_wms/./userregister/views.py", line 63, in register
  333. if Users.objects.filter(name=str(data['name']), developer=1, is_delete=0).exists():
  334. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 1225, in exists
  335. return self.query.has_results(using=self.db)
  336. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 592, in has_results
  337. return compiler.has_results()
  338. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1366, in has_results
  339. return bool(self.execute_sql(SINGLE))
  340. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  341. cursor.execute(sql, params)
  342. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  343. return super().execute(sql, params)
  344. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  345. return self._execute_with_wrappers(
  346. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  347. return executor(sql, params, many, context)
  348. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  349. with self.db.wrap_database_errors:
  350. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  351. raise dj_exc_value.with_traceback(traceback) from exc_value
  352. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  353. return self.cursor.execute(sql, params)
  354. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  355. return Database.Cursor.execute(self, query, params)
  356. django.db.utils.OperationalError: no such table: user_profile
  357. [2025-02-28 11:06:01,105][django.request.log_response():241] [ERROR] Internal Server Error: /warehouse/multiple/
  358. Traceback (most recent call last):
  359. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  360. return self.cursor.execute(sql, params)
  361. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  362. return Database.Cursor.execute(self, query, params)
  363. sqlite3.OperationalError: no such table: warehouse
  364. The above exception was the direct cause of the following exception:
  365. Traceback (most recent call last):
  366. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  367. raise exc_info[1]
  368. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  369. response = await get_response(request)
  370. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  371. response = await wrapped_callback(
  372. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  373. ret = await asyncio.wait_for(future, timeout=None)
  374. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  375. return await fut
  376. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  377. result = self.fn(*self.args, **self.kwargs)
  378. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  379. return func(*args, **kwargs)
  380. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  381. return view_func(*args, **kwargs)
  382. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  383. return self.dispatch(request, *args, **kwargs)
  384. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  385. response = self.handle_exception(exc)
  386. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  387. self.raise_uncaught_exception(exc)
  388. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  389. raise exc
  390. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  391. response = handler(request, *args, **kwargs)
  392. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 40, in list
  393. page = self.paginate_queryset(queryset)
  394. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 171, in paginate_queryset
  395. return self.paginator.paginate_queryset(queryset, self.request, view=self)
  396. File "/usr/local/lib/python3.10/dist-packages/rest_framework/pagination.py", line 204, in paginate_queryset
  397. self.page = paginator.page(page_number)
  398. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 75, in page
  399. number = self.validate_number(number)
  400. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 53, in validate_number
  401. if number > self.num_pages:
  402. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  403. res = instance.__dict__[self.name] = self.func(instance)
  404. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 102, in num_pages
  405. if self.count == 0 and not self.allow_empty_first_page:
  406. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  407. res = instance.__dict__[self.name] = self.func(instance)
  408. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 96, in count
  409. return c()
  410. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 621, in count
  411. return self.query.get_count(using=self.db)
  412. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 559, in get_count
  413. return obj.get_aggregation(using, ["__count"])["__count"]
  414. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 544, in get_aggregation
  415. result = compiler.execute_sql(SINGLE)
  416. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  417. cursor.execute(sql, params)
  418. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  419. return super().execute(sql, params)
  420. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  421. return self._execute_with_wrappers(
  422. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  423. return executor(sql, params, many, context)
  424. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  425. with self.db.wrap_database_errors:
  426. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  427. raise dj_exc_value.with_traceback(traceback) from exc_value
  428. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  429. return self.cursor.execute(sql, params)
  430. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  431. return Database.Cursor.execute(self, query, params)
  432. django.db.utils.OperationalError: no such table: warehouse
  433. [2025-02-28 11:06:36,929][django.request.log_response():241] [ERROR] Internal Server Error: /warehouse/multiple/
  434. Traceback (most recent call last):
  435. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  436. return self.cursor.execute(sql, params)
  437. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  438. return Database.Cursor.execute(self, query, params)
  439. sqlite3.OperationalError: no such table: warehouse
  440. The above exception was the direct cause of the following exception:
  441. Traceback (most recent call last):
  442. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  443. raise exc_info[1]
  444. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  445. response = await get_response(request)
  446. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  447. response = await wrapped_callback(
  448. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  449. ret = await asyncio.wait_for(future, timeout=None)
  450. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  451. return await fut
  452. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  453. result = self.fn(*self.args, **self.kwargs)
  454. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  455. return func(*args, **kwargs)
  456. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  457. return view_func(*args, **kwargs)
  458. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  459. return self.dispatch(request, *args, **kwargs)
  460. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  461. response = self.handle_exception(exc)
  462. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  463. self.raise_uncaught_exception(exc)
  464. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  465. raise exc
  466. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  467. response = handler(request, *args, **kwargs)
  468. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 40, in list
  469. page = self.paginate_queryset(queryset)
  470. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 171, in paginate_queryset
  471. return self.paginator.paginate_queryset(queryset, self.request, view=self)
  472. File "/usr/local/lib/python3.10/dist-packages/rest_framework/pagination.py", line 204, in paginate_queryset
  473. self.page = paginator.page(page_number)
  474. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 75, in page
  475. number = self.validate_number(number)
  476. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 53, in validate_number
  477. if number > self.num_pages:
  478. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  479. res = instance.__dict__[self.name] = self.func(instance)
  480. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 102, in num_pages
  481. if self.count == 0 and not self.allow_empty_first_page:
  482. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  483. res = instance.__dict__[self.name] = self.func(instance)
  484. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 96, in count
  485. return c()
  486. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 621, in count
  487. return self.query.get_count(using=self.db)
  488. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 559, in get_count
  489. return obj.get_aggregation(using, ["__count"])["__count"]
  490. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 544, in get_aggregation
  491. result = compiler.execute_sql(SINGLE)
  492. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  493. cursor.execute(sql, params)
  494. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  495. return super().execute(sql, params)
  496. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  497. return self._execute_with_wrappers(
  498. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  499. return executor(sql, params, many, context)
  500. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  501. with self.db.wrap_database_errors:
  502. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  503. raise dj_exc_value.with_traceback(traceback) from exc_value
  504. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  505. return self.cursor.execute(sql, params)
  506. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  507. return Database.Cursor.execute(self, query, params)
  508. django.db.utils.OperationalError: no such table: warehouse
  509. [2025-02-28 11:09:28,852][django.request.log_response():241] [ERROR] Internal Server Error: /register/
  510. Traceback (most recent call last):
  511. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  512. return self.cursor.execute(sql, params)
  513. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  514. return Database.Cursor.execute(self, query, params)
  515. sqlite3.OperationalError: no such table: user_profile
  516. The above exception was the direct cause of the following exception:
  517. Traceback (most recent call last):
  518. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  519. raise exc_info[1]
  520. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  521. response = await get_response(request)
  522. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  523. response = await wrapped_callback(
  524. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  525. ret = await asyncio.wait_for(future, timeout=None)
  526. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  527. return await fut
  528. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  529. result = self.fn(*self.args, **self.kwargs)
  530. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  531. return func(*args, **kwargs)
  532. File "/usr/local/lib/python3.10/dist-packages/django/utils/decorators.py", line 46, in _wrapper
  533. return bound_method(*args, **kwargs)
  534. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  535. return view_func(*args, **kwargs)
  536. File "/home/flower/code/vue_ws/greater_wms/./userregister/views.py", line 63, in register
  537. if Users.objects.filter(name=str(data['name']), developer=1, is_delete=0).exists():
  538. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 1225, in exists
  539. return self.query.has_results(using=self.db)
  540. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 592, in has_results
  541. return compiler.has_results()
  542. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1366, in has_results
  543. return bool(self.execute_sql(SINGLE))
  544. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  545. cursor.execute(sql, params)
  546. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  547. return super().execute(sql, params)
  548. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  549. return self._execute_with_wrappers(
  550. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  551. return executor(sql, params, many, context)
  552. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  553. with self.db.wrap_database_errors:
  554. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  555. raise dj_exc_value.with_traceback(traceback) from exc_value
  556. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  557. return self.cursor.execute(sql, params)
  558. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  559. return Database.Cursor.execute(self, query, params)
  560. django.db.utils.OperationalError: no such table: user_profile
  561. [2025-02-28 11:10:28,041][django.request.log_response():241] [ERROR] Internal Server Error: /register/
  562. Traceback (most recent call last):
  563. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  564. return self.cursor.execute(sql, params)
  565. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  566. return Database.Cursor.execute(self, query, params)
  567. sqlite3.OperationalError: no such table: user_profile
  568. The above exception was the direct cause of the following exception:
  569. Traceback (most recent call last):
  570. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  571. raise exc_info[1]
  572. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  573. response = await get_response(request)
  574. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  575. response = await wrapped_callback(
  576. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  577. ret = await asyncio.wait_for(future, timeout=None)
  578. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  579. return await fut
  580. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  581. result = self.fn(*self.args, **self.kwargs)
  582. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  583. return func(*args, **kwargs)
  584. File "/usr/local/lib/python3.10/dist-packages/django/utils/decorators.py", line 46, in _wrapper
  585. return bound_method(*args, **kwargs)
  586. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  587. return view_func(*args, **kwargs)
  588. File "/home/flower/code/vue_ws/greater_wms/./userregister/views.py", line 63, in register
  589. if Users.objects.filter(name=str(data['name']), developer=1, is_delete=0).exists():
  590. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 1225, in exists
  591. return self.query.has_results(using=self.db)
  592. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 592, in has_results
  593. return compiler.has_results()
  594. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1366, in has_results
  595. return bool(self.execute_sql(SINGLE))
  596. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  597. cursor.execute(sql, params)
  598. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  599. return super().execute(sql, params)
  600. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  601. return self._execute_with_wrappers(
  602. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  603. return executor(sql, params, many, context)
  604. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  605. with self.db.wrap_database_errors:
  606. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  607. raise dj_exc_value.with_traceback(traceback) from exc_value
  608. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  609. return self.cursor.execute(sql, params)
  610. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  611. return Database.Cursor.execute(self, query, params)
  612. django.db.utils.OperationalError: no such table: user_profile
  613. [2025-02-28 11:22:16,975][django.request.log_response():241] [ERROR] Internal Server Error: /register/
  614. Traceback (most recent call last):
  615. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  616. return self.cursor.execute(sql, params)
  617. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  618. return Database.Cursor.execute(self, query, params)
  619. sqlite3.OperationalError: no such table: user_profile
  620. The above exception was the direct cause of the following exception:
  621. Traceback (most recent call last):
  622. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  623. raise exc_info[1]
  624. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  625. response = await get_response(request)
  626. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  627. response = await wrapped_callback(
  628. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  629. ret = await asyncio.wait_for(future, timeout=None)
  630. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  631. return await fut
  632. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  633. result = self.fn(*self.args, **self.kwargs)
  634. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  635. return func(*args, **kwargs)
  636. File "/usr/local/lib/python3.10/dist-packages/django/utils/decorators.py", line 46, in _wrapper
  637. return bound_method(*args, **kwargs)
  638. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  639. return view_func(*args, **kwargs)
  640. File "/home/flower/code/vue_ws/greater_wms/./userregister/views.py", line 63, in register
  641. # 检查是否存在名为 data['name'] 的开发者用户且未被删除
  642. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 1225, in exists
  643. return self.query.has_results(using=self.db)
  644. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 592, in has_results
  645. return compiler.has_results()
  646. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1366, in has_results
  647. return bool(self.execute_sql(SINGLE))
  648. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  649. cursor.execute(sql, params)
  650. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  651. return super().execute(sql, params)
  652. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  653. return self._execute_with_wrappers(
  654. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  655. return executor(sql, params, many, context)
  656. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  657. with self.db.wrap_database_errors:
  658. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  659. raise dj_exc_value.with_traceback(traceback) from exc_value
  660. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  661. return self.cursor.execute(sql, params)
  662. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  663. return Database.Cursor.execute(self, query, params)
  664. django.db.utils.OperationalError: no such table: user_profile
  665. [2025-02-28 11:22:22,226][django.request.log_response():241] [ERROR] Internal Server Error: /register/
  666. Traceback (most recent call last):
  667. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  668. return self.cursor.execute(sql, params)
  669. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  670. return Database.Cursor.execute(self, query, params)
  671. sqlite3.OperationalError: no such table: user_profile
  672. The above exception was the direct cause of the following exception:
  673. Traceback (most recent call last):
  674. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  675. raise exc_info[1]
  676. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  677. response = await get_response(request)
  678. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  679. response = await wrapped_callback(
  680. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  681. ret = await asyncio.wait_for(future, timeout=None)
  682. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  683. return await fut
  684. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  685. result = self.fn(*self.args, **self.kwargs)
  686. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  687. return func(*args, **kwargs)
  688. File "/usr/local/lib/python3.10/dist-packages/django/utils/decorators.py", line 46, in _wrapper
  689. return bound_method(*args, **kwargs)
  690. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  691. return view_func(*args, **kwargs)
  692. File "/home/flower/code/vue_ws/greater_wms/./userregister/views.py", line 63, in register
  693. # 检查是否存在名为 data['name'] 的开发者用户且未被删除
  694. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 1225, in exists
  695. return self.query.has_results(using=self.db)
  696. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 592, in has_results
  697. return compiler.has_results()
  698. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1366, in has_results
  699. return bool(self.execute_sql(SINGLE))
  700. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  701. cursor.execute(sql, params)
  702. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  703. return super().execute(sql, params)
  704. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  705. return self._execute_with_wrappers(
  706. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  707. return executor(sql, params, many, context)
  708. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  709. with self.db.wrap_database_errors:
  710. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  711. raise dj_exc_value.with_traceback(traceback) from exc_value
  712. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  713. return self.cursor.execute(sql, params)
  714. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  715. return Database.Cursor.execute(self, query, params)
  716. django.db.utils.OperationalError: no such table: user_profile
  717. [2025-02-28 11:24:32,849][django.request.log_response():241] [ERROR] Internal Server Error: /register/
  718. Traceback (most recent call last):
  719. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  720. return self.cursor.execute(sql, params)
  721. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  722. return Database.Cursor.execute(self, query, params)
  723. sqlite3.OperationalError: no such table: user_profile
  724. The above exception was the direct cause of the following exception:
  725. Traceback (most recent call last):
  726. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  727. raise exc_info[1]
  728. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  729. response = await get_response(request)
  730. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  731. response = await wrapped_callback(
  732. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  733. ret = await asyncio.wait_for(future, timeout=None)
  734. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  735. return await fut
  736. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  737. result = self.fn(*self.args, **self.kwargs)
  738. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  739. return func(*args, **kwargs)
  740. File "/usr/local/lib/python3.10/dist-packages/django/utils/decorators.py", line 46, in _wrapper
  741. return bound_method(*args, **kwargs)
  742. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  743. return view_func(*args, **kwargs)
  744. File "/home/flower/code/vue_ws/greater_wms/./userregister/views.py", line 63, in register
  745. # 检查是否存在名为 data['name'] 的开发者用户且未被删除
  746. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 1225, in exists
  747. return self.query.has_results(using=self.db)
  748. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 592, in has_results
  749. return compiler.has_results()
  750. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1366, in has_results
  751. return bool(self.execute_sql(SINGLE))
  752. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  753. cursor.execute(sql, params)
  754. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  755. return super().execute(sql, params)
  756. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  757. return self._execute_with_wrappers(
  758. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  759. return executor(sql, params, many, context)
  760. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  761. with self.db.wrap_database_errors:
  762. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  763. raise dj_exc_value.with_traceback(traceback) from exc_value
  764. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  765. return self.cursor.execute(sql, params)
  766. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  767. return Database.Cursor.execute(self, query, params)
  768. django.db.utils.OperationalError: no such table: user_profile
  769. [2025-03-01 13:13:22,891][django.request.log_response():241] [ERROR] Internal Server Error: /warehouse/
  770. Traceback (most recent call last):
  771. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  772. raise exc_info[1]
  773. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  774. response = await get_response(request)
  775. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  776. response = await wrapped_callback(
  777. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  778. ret = await asyncio.wait_for(future, timeout=None)
  779. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  780. return await fut
  781. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  782. result = self.fn(*self.args, **self.kwargs)
  783. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  784. return func(*args, **kwargs)
  785. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  786. return view_func(*args, **kwargs)
  787. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  788. return self.dispatch(request, *args, **kwargs)
  789. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  790. response = self.handle_exception(exc)
  791. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  792. self.raise_uncaught_exception(exc)
  793. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  794. raise exc
  795. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  796. response = handler(request, *args, **kwargs)
  797. File "/home/flower/code/vue_ws/greater_wms/./warehouse/views.py", line 69, in create
  798. def create(self, request, *args, **kwargs):
  799. KeyError: 'warehouse_name'
  800. [2025-03-01 13:19:06,717][django.request.log_response():241] [ERROR] Internal Server Error: /warehouse/
  801. Traceback (most recent call last):
  802. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  803. raise exc_info[1]
  804. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  805. response = await get_response(request)
  806. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  807. response = await wrapped_callback(
  808. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  809. ret = await asyncio.wait_for(future, timeout=None)
  810. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  811. return await fut
  812. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  813. result = self.fn(*self.args, **self.kwargs)
  814. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  815. return func(*args, **kwargs)
  816. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  817. return view_func(*args, **kwargs)
  818. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  819. return self.dispatch(request, *args, **kwargs)
  820. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  821. response = self.handle_exception(exc)
  822. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  823. self.raise_uncaught_exception(exc)
  824. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  825. raise exc
  826. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  827. response = handler(request, *args, **kwargs)
  828. File "/home/flower/code/vue_ws/greater_wms/./warehouse/views.py", line 68, in create
  829. File "/usr/local/lib/python3.10/dist-packages/django/http/request.py", line 526, in __setitem__
  830. self._assert_mutable()
  831. File "/usr/local/lib/python3.10/dist-packages/django/http/request.py", line 523, in _assert_mutable
  832. raise AttributeError("This QueryDict instance is immutable")
  833. AttributeError: This QueryDict instance is immutable
  834. [2025-03-01 13:33:37,542][django.request.log_response():241] [ERROR] Internal Server Error: /warehouse/
  835. Traceback (most recent call last):
  836. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  837. raise exc_info[1]
  838. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  839. response = await get_response(request)
  840. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  841. response = await wrapped_callback(
  842. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  843. ret = await asyncio.wait_for(future, timeout=None)
  844. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  845. return await fut
  846. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  847. result = self.fn(*self.args, **self.kwargs)
  848. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  849. return func(*args, **kwargs)
  850. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  851. return view_func(*args, **kwargs)
  852. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  853. return self.dispatch(request, *args, **kwargs)
  854. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  855. response = self.handle_exception(exc)
  856. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  857. self.raise_uncaught_exception(exc)
  858. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  859. raise exc
  860. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  861. response = handler(request, *args, **kwargs)
  862. File "/home/flower/code/vue_ws/greater_wms/./warehouse/views.py", line 68, in create
  863. File "/usr/local/lib/python3.10/dist-packages/django/http/request.py", line 526, in __setitem__
  864. self._assert_mutable()
  865. File "/usr/local/lib/python3.10/dist-packages/django/http/request.py", line 523, in _assert_mutable
  866. raise AttributeError("This QueryDict instance is immutable")
  867. AttributeError: This QueryDict instance is immutable
  868. [2025-03-13 22:31:26,119][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  869. Traceback (most recent call last):
  870. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  871. raise exc_info[1]
  872. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  873. response = await get_response(request)
  874. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  875. response = await wrapped_callback(
  876. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  877. ret = await asyncio.wait_for(future, timeout=None)
  878. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  879. return await fut
  880. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  881. result = self.fn(*self.args, **self.kwargs)
  882. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  883. return func(*args, **kwargs)
  884. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  885. return view_func(*args, **kwargs)
  886. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  887. return self.dispatch(request, *args, **kwargs)
  888. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  889. response = self.handle_exception(exc)
  890. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  891. self.raise_uncaught_exception(exc)
  892. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  893. raise exc
  894. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  895. response = handler(request, *args, **kwargs)
  896. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 119, in create
  897. check_code = random.randint(1000, 9999)
  898. NameError: name 'random' is not defined
  899. [2025-03-13 22:31:34,462][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  900. Traceback (most recent call last):
  901. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  902. raise exc_info[1]
  903. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  904. response = await get_response(request)
  905. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  906. response = await wrapped_callback(
  907. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  908. ret = await asyncio.wait_for(future, timeout=None)
  909. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  910. return await fut
  911. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  912. result = self.fn(*self.args, **self.kwargs)
  913. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  914. return func(*args, **kwargs)
  915. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  916. return view_func(*args, **kwargs)
  917. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  918. return self.dispatch(request, *args, **kwargs)
  919. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  920. response = self.handle_exception(exc)
  921. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  922. self.raise_uncaught_exception(exc)
  923. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  924. raise exc
  925. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  926. response = handler(request, *args, **kwargs)
  927. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 119, in create
  928. check_code = random.randint(1000, 9999)
  929. NameError: name 'random' is not defined
  930. [2025-03-13 22:32:16,714][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  931. Traceback (most recent call last):
  932. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  933. raise exc_info[1]
  934. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  935. response = await get_response(request)
  936. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  937. response = await wrapped_callback(
  938. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  939. ret = await asyncio.wait_for(future, timeout=None)
  940. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  941. return await fut
  942. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  943. result = self.fn(*self.args, **self.kwargs)
  944. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  945. return func(*args, **kwargs)
  946. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  947. return view_func(*args, **kwargs)
  948. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  949. return self.dispatch(request, *args, **kwargs)
  950. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  951. response = self.handle_exception(exc)
  952. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  953. self.raise_uncaught_exception(exc)
  954. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  955. raise exc
  956. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  957. response = handler(request, *args, **kwargs)
  958. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 119, in create
  959. check_code = random.randint(1000, 9999)
  960. NameError: name 'random' is not defined
  961. [2025-03-13 22:33:09,371][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  962. Traceback (most recent call last):
  963. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  964. raise exc_info[1]
  965. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  966. response = await get_response(request)
  967. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  968. response = await wrapped_callback(
  969. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  970. ret = await asyncio.wait_for(future, timeout=None)
  971. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  972. return await fut
  973. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  974. result = self.fn(*self.args, **self.kwargs)
  975. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  976. return func(*args, **kwargs)
  977. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  978. return view_func(*args, **kwargs)
  979. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  980. return self.dispatch(request, *args, **kwargs)
  981. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  982. response = self.handle_exception(exc)
  983. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  984. self.raise_uncaught_exception(exc)
  985. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  986. raise exc
  987. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  988. response = handler(request, *args, **kwargs)
  989. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 120, in create
  990. staff.objects.create(staff_name=str(data['staff_name']),
  991. NameError: name 'staff' is not defined
  992. [2025-03-13 22:33:12,904][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  993. Traceback (most recent call last):
  994. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  995. raise exc_info[1]
  996. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  997. response = await get_response(request)
  998. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  999. response = await wrapped_callback(
  1000. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1001. ret = await asyncio.wait_for(future, timeout=None)
  1002. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1003. return await fut
  1004. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1005. result = self.fn(*self.args, **self.kwargs)
  1006. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1007. return func(*args, **kwargs)
  1008. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1009. return view_func(*args, **kwargs)
  1010. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1011. return self.dispatch(request, *args, **kwargs)
  1012. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1013. response = self.handle_exception(exc)
  1014. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1015. self.raise_uncaught_exception(exc)
  1016. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1017. raise exc
  1018. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  1019. response = handler(request, *args, **kwargs)
  1020. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 120, in create
  1021. staff.objects.create(staff_name=str(data['staff_name']),
  1022. NameError: name 'staff' is not defined
  1023. [2025-03-14 11:25:14,368][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1024. Traceback (most recent call last):
  1025. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  1026. return self.cursor.execute(sql, params)
  1027. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  1028. return Database.Cursor.execute(self, query, params)
  1029. sqlite3.OperationalError: no such column: staff.group_id
  1030. The above exception was the direct cause of the following exception:
  1031. Traceback (most recent call last):
  1032. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1033. raise exc_info[1]
  1034. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1035. response = await get_response(request)
  1036. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1037. response = await wrapped_callback(
  1038. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1039. ret = await asyncio.wait_for(future, timeout=None)
  1040. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1041. return await fut
  1042. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1043. result = self.fn(*self.args, **self.kwargs)
  1044. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1045. return func(*args, **kwargs)
  1046. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1047. return view_func(*args, **kwargs)
  1048. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1049. return self.dispatch(request, *args, **kwargs)
  1050. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1051. response = self.handle_exception(exc)
  1052. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1053. self.raise_uncaught_exception(exc)
  1054. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1055. raise exc
  1056. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  1057. response = handler(request, *args, **kwargs)
  1058. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 50, in list
  1059. return super().list(request, *args, **kwargs)
  1060. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 40, in list
  1061. page = self.paginate_queryset(queryset)
  1062. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 171, in paginate_queryset
  1063. return self.paginator.paginate_queryset(queryset, self.request, view=self)
  1064. File "/usr/local/lib/python3.10/dist-packages/rest_framework/pagination.py", line 216, in paginate_queryset
  1065. return list(self.page)
  1066. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 177, in __len__
  1067. return len(self.object_list)
  1068. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 376, in __len__
  1069. self._fetch_all()
  1070. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 1866, in _fetch_all
  1071. self._result_cache = list(self._iterable_class(self))
  1072. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 87, in __iter__
  1073. results = compiler.execute_sql(
  1074. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  1075. cursor.execute(sql, params)
  1076. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  1077. return super().execute(sql, params)
  1078. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  1079. return self._execute_with_wrappers(
  1080. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  1081. return executor(sql, params, many, context)
  1082. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  1083. with self.db.wrap_database_errors:
  1084. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  1085. raise dj_exc_value.with_traceback(traceback) from exc_value
  1086. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  1087. return self.cursor.execute(sql, params)
  1088. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  1089. return Database.Cursor.execute(self, query, params)
  1090. django.db.utils.OperationalError: no such column: staff.group_id
  1091. [2025-03-14 11:25:18,672][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1092. Traceback (most recent call last):
  1093. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  1094. return self.cursor.execute(sql, params)
  1095. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  1096. return Database.Cursor.execute(self, query, params)
  1097. sqlite3.OperationalError: no such column: staff.group_id
  1098. The above exception was the direct cause of the following exception:
  1099. Traceback (most recent call last):
  1100. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1101. raise exc_info[1]
  1102. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1103. response = await get_response(request)
  1104. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1105. response = await wrapped_callback(
  1106. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1107. ret = await asyncio.wait_for(future, timeout=None)
  1108. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1109. return await fut
  1110. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1111. result = self.fn(*self.args, **self.kwargs)
  1112. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1113. return func(*args, **kwargs)
  1114. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1115. return view_func(*args, **kwargs)
  1116. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1117. return self.dispatch(request, *args, **kwargs)
  1118. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1119. response = self.handle_exception(exc)
  1120. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1121. self.raise_uncaught_exception(exc)
  1122. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1123. raise exc
  1124. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  1125. response = handler(request, *args, **kwargs)
  1126. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 50, in list
  1127. return super().list(request, *args, **kwargs)
  1128. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 40, in list
  1129. page = self.paginate_queryset(queryset)
  1130. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 171, in paginate_queryset
  1131. return self.paginator.paginate_queryset(queryset, self.request, view=self)
  1132. File "/usr/local/lib/python3.10/dist-packages/rest_framework/pagination.py", line 216, in paginate_queryset
  1133. return list(self.page)
  1134. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 177, in __len__
  1135. return len(self.object_list)
  1136. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 376, in __len__
  1137. self._fetch_all()
  1138. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 1866, in _fetch_all
  1139. self._result_cache = list(self._iterable_class(self))
  1140. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 87, in __iter__
  1141. results = compiler.execute_sql(
  1142. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  1143. cursor.execute(sql, params)
  1144. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  1145. return super().execute(sql, params)
  1146. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  1147. return self._execute_with_wrappers(
  1148. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  1149. return executor(sql, params, many, context)
  1150. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  1151. with self.db.wrap_database_errors:
  1152. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  1153. raise dj_exc_value.with_traceback(traceback) from exc_value
  1154. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  1155. return self.cursor.execute(sql, params)
  1156. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  1157. return Database.Cursor.execute(self, query, params)
  1158. django.db.utils.OperationalError: no such column: staff.group_id
  1159. [2025-03-14 11:25:20,078][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1160. Traceback (most recent call last):
  1161. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  1162. return self.cursor.execute(sql, params)
  1163. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  1164. return Database.Cursor.execute(self, query, params)
  1165. sqlite3.OperationalError: no such column: staff.group_id
  1166. The above exception was the direct cause of the following exception:
  1167. Traceback (most recent call last):
  1168. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1169. raise exc_info[1]
  1170. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1171. response = await get_response(request)
  1172. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1173. response = await wrapped_callback(
  1174. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1175. ret = await asyncio.wait_for(future, timeout=None)
  1176. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1177. return await fut
  1178. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1179. result = self.fn(*self.args, **self.kwargs)
  1180. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1181. return func(*args, **kwargs)
  1182. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1183. return view_func(*args, **kwargs)
  1184. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1185. return self.dispatch(request, *args, **kwargs)
  1186. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1187. response = self.handle_exception(exc)
  1188. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1189. self.raise_uncaught_exception(exc)
  1190. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1191. raise exc
  1192. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  1193. response = handler(request, *args, **kwargs)
  1194. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 50, in list
  1195. return super().list(request, *args, **kwargs)
  1196. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 40, in list
  1197. page = self.paginate_queryset(queryset)
  1198. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 171, in paginate_queryset
  1199. return self.paginator.paginate_queryset(queryset, self.request, view=self)
  1200. File "/usr/local/lib/python3.10/dist-packages/rest_framework/pagination.py", line 216, in paginate_queryset
  1201. return list(self.page)
  1202. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 177, in __len__
  1203. return len(self.object_list)
  1204. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 376, in __len__
  1205. self._fetch_all()
  1206. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 1866, in _fetch_all
  1207. self._result_cache = list(self._iterable_class(self))
  1208. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 87, in __iter__
  1209. results = compiler.execute_sql(
  1210. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  1211. cursor.execute(sql, params)
  1212. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  1213. return super().execute(sql, params)
  1214. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  1215. return self._execute_with_wrappers(
  1216. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  1217. return executor(sql, params, many, context)
  1218. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  1219. with self.db.wrap_database_errors:
  1220. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  1221. raise dj_exc_value.with_traceback(traceback) from exc_value
  1222. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  1223. return self.cursor.execute(sql, params)
  1224. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  1225. return Database.Cursor.execute(self, query, params)
  1226. django.db.utils.OperationalError: no such column: staff.group_id
  1227. [2025-03-14 11:25:39,687][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1228. Traceback (most recent call last):
  1229. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  1230. return self.cursor.execute(sql, params)
  1231. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  1232. return Database.Cursor.execute(self, query, params)
  1233. sqlite3.OperationalError: no such column: staff.group_id
  1234. The above exception was the direct cause of the following exception:
  1235. Traceback (most recent call last):
  1236. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1237. raise exc_info[1]
  1238. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1239. response = await get_response(request)
  1240. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1241. response = await wrapped_callback(
  1242. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1243. ret = await asyncio.wait_for(future, timeout=None)
  1244. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1245. return await fut
  1246. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1247. result = self.fn(*self.args, **self.kwargs)
  1248. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1249. return func(*args, **kwargs)
  1250. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1251. return view_func(*args, **kwargs)
  1252. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1253. return self.dispatch(request, *args, **kwargs)
  1254. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1255. response = self.handle_exception(exc)
  1256. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1257. self.raise_uncaught_exception(exc)
  1258. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1259. raise exc
  1260. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  1261. response = handler(request, *args, **kwargs)
  1262. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 50, in list
  1263. return super().list(request, *args, **kwargs)
  1264. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 40, in list
  1265. page = self.paginate_queryset(queryset)
  1266. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 171, in paginate_queryset
  1267. return self.paginator.paginate_queryset(queryset, self.request, view=self)
  1268. File "/usr/local/lib/python3.10/dist-packages/rest_framework/pagination.py", line 216, in paginate_queryset
  1269. return list(self.page)
  1270. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 177, in __len__
  1271. return len(self.object_list)
  1272. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 376, in __len__
  1273. self._fetch_all()
  1274. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 1866, in _fetch_all
  1275. self._result_cache = list(self._iterable_class(self))
  1276. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 87, in __iter__
  1277. results = compiler.execute_sql(
  1278. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  1279. cursor.execute(sql, params)
  1280. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  1281. return super().execute(sql, params)
  1282. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  1283. return self._execute_with_wrappers(
  1284. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  1285. return executor(sql, params, many, context)
  1286. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  1287. with self.db.wrap_database_errors:
  1288. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  1289. raise dj_exc_value.with_traceback(traceback) from exc_value
  1290. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  1291. return self.cursor.execute(sql, params)
  1292. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  1293. return Database.Cursor.execute(self, query, params)
  1294. django.db.utils.OperationalError: no such column: staff.group_id
  1295. [2025-03-14 11:25:42,605][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1296. Traceback (most recent call last):
  1297. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  1298. return self.cursor.execute(sql, params)
  1299. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  1300. return Database.Cursor.execute(self, query, params)
  1301. sqlite3.OperationalError: no such column: staff.group_id
  1302. The above exception was the direct cause of the following exception:
  1303. Traceback (most recent call last):
  1304. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1305. raise exc_info[1]
  1306. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1307. response = await get_response(request)
  1308. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1309. response = await wrapped_callback(
  1310. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1311. ret = await asyncio.wait_for(future, timeout=None)
  1312. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1313. return await fut
  1314. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1315. result = self.fn(*self.args, **self.kwargs)
  1316. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1317. return func(*args, **kwargs)
  1318. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1319. return view_func(*args, **kwargs)
  1320. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1321. return self.dispatch(request, *args, **kwargs)
  1322. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1323. response = self.handle_exception(exc)
  1324. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1325. self.raise_uncaught_exception(exc)
  1326. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1327. raise exc
  1328. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  1329. response = handler(request, *args, **kwargs)
  1330. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 50, in list
  1331. return super().list(request, *args, **kwargs)
  1332. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 40, in list
  1333. page = self.paginate_queryset(queryset)
  1334. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 171, in paginate_queryset
  1335. return self.paginator.paginate_queryset(queryset, self.request, view=self)
  1336. File "/usr/local/lib/python3.10/dist-packages/rest_framework/pagination.py", line 216, in paginate_queryset
  1337. return list(self.page)
  1338. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 177, in __len__
  1339. return len(self.object_list)
  1340. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 376, in __len__
  1341. self._fetch_all()
  1342. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 1866, in _fetch_all
  1343. self._result_cache = list(self._iterable_class(self))
  1344. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 87, in __iter__
  1345. results = compiler.execute_sql(
  1346. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  1347. cursor.execute(sql, params)
  1348. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  1349. return super().execute(sql, params)
  1350. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  1351. return self._execute_with_wrappers(
  1352. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  1353. return executor(sql, params, many, context)
  1354. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  1355. with self.db.wrap_database_errors:
  1356. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  1357. raise dj_exc_value.with_traceback(traceback) from exc_value
  1358. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  1359. return self.cursor.execute(sql, params)
  1360. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  1361. return Database.Cursor.execute(self, query, params)
  1362. django.db.utils.OperationalError: no such column: staff.group_id
  1363. [2025-03-14 11:25:42,622][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1364. Traceback (most recent call last):
  1365. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  1366. return self.cursor.execute(sql, params)
  1367. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  1368. return Database.Cursor.execute(self, query, params)
  1369. sqlite3.OperationalError: no such column: staff.group_id
  1370. The above exception was the direct cause of the following exception:
  1371. Traceback (most recent call last):
  1372. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1373. raise exc_info[1]
  1374. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1375. response = await get_response(request)
  1376. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1377. response = await wrapped_callback(
  1378. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1379. ret = await asyncio.wait_for(future, timeout=None)
  1380. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1381. return await fut
  1382. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1383. result = self.fn(*self.args, **self.kwargs)
  1384. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1385. return func(*args, **kwargs)
  1386. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1387. return view_func(*args, **kwargs)
  1388. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1389. return self.dispatch(request, *args, **kwargs)
  1390. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1391. response = self.handle_exception(exc)
  1392. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1393. self.raise_uncaught_exception(exc)
  1394. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1395. raise exc
  1396. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  1397. response = handler(request, *args, **kwargs)
  1398. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 50, in list
  1399. return super().list(request, *args, **kwargs)
  1400. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 40, in list
  1401. page = self.paginate_queryset(queryset)
  1402. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 171, in paginate_queryset
  1403. return self.paginator.paginate_queryset(queryset, self.request, view=self)
  1404. File "/usr/local/lib/python3.10/dist-packages/rest_framework/pagination.py", line 216, in paginate_queryset
  1405. return list(self.page)
  1406. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 177, in __len__
  1407. return len(self.object_list)
  1408. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 376, in __len__
  1409. self._fetch_all()
  1410. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 1866, in _fetch_all
  1411. self._result_cache = list(self._iterable_class(self))
  1412. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 87, in __iter__
  1413. results = compiler.execute_sql(
  1414. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  1415. cursor.execute(sql, params)
  1416. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  1417. return super().execute(sql, params)
  1418. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  1419. return self._execute_with_wrappers(
  1420. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  1421. return executor(sql, params, many, context)
  1422. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  1423. with self.db.wrap_database_errors:
  1424. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  1425. raise dj_exc_value.with_traceback(traceback) from exc_value
  1426. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  1427. return self.cursor.execute(sql, params)
  1428. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  1429. return Database.Cursor.execute(self, query, params)
  1430. django.db.utils.OperationalError: no such column: staff.group_id
  1431. [2025-03-14 11:25:49,761][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1432. Traceback (most recent call last):
  1433. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  1434. return self.cursor.execute(sql, params)
  1435. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  1436. return Database.Cursor.execute(self, query, params)
  1437. sqlite3.OperationalError: no such column: staff.group_id
  1438. The above exception was the direct cause of the following exception:
  1439. Traceback (most recent call last):
  1440. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1441. raise exc_info[1]
  1442. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1443. response = await get_response(request)
  1444. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1445. response = await wrapped_callback(
  1446. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1447. ret = await asyncio.wait_for(future, timeout=None)
  1448. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1449. return await fut
  1450. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1451. result = self.fn(*self.args, **self.kwargs)
  1452. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1453. return func(*args, **kwargs)
  1454. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1455. return view_func(*args, **kwargs)
  1456. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1457. return self.dispatch(request, *args, **kwargs)
  1458. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1459. response = self.handle_exception(exc)
  1460. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1461. self.raise_uncaught_exception(exc)
  1462. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1463. raise exc
  1464. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  1465. response = handler(request, *args, **kwargs)
  1466. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 50, in list
  1467. return super().list(request, *args, **kwargs)
  1468. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 40, in list
  1469. page = self.paginate_queryset(queryset)
  1470. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 171, in paginate_queryset
  1471. return self.paginator.paginate_queryset(queryset, self.request, view=self)
  1472. File "/usr/local/lib/python3.10/dist-packages/rest_framework/pagination.py", line 216, in paginate_queryset
  1473. return list(self.page)
  1474. File "/usr/local/lib/python3.10/dist-packages/django/core/paginator.py", line 177, in __len__
  1475. return len(self.object_list)
  1476. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 376, in __len__
  1477. self._fetch_all()
  1478. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 1866, in _fetch_all
  1479. self._result_cache = list(self._iterable_class(self))
  1480. File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 87, in __iter__
  1481. results = compiler.execute_sql(
  1482. File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
  1483. cursor.execute(sql, params)
  1484. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 103, in execute
  1485. return super().execute(sql, params)
  1486. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
  1487. return self._execute_with_wrappers(
  1488. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  1489. return executor(sql, params, many, context)
  1490. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
  1491. with self.db.wrap_database_errors:
  1492. File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
  1493. raise dj_exc_value.with_traceback(traceback) from exc_value
  1494. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
  1495. return self.cursor.execute(sql, params)
  1496. File "/usr/local/lib/python3.10/dist-packages/django/db/backends/sqlite3/base.py", line 357, in execute
  1497. return Database.Cursor.execute(self, query, params)
  1498. django.db.utils.OperationalError: no such column: staff.group_id
  1499. [2025-03-14 14:47:51,761][django.request.log_response():241] [ERROR] Internal Server Error: /login/
  1500. Traceback (most recent call last):
  1501. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1502. raise exc_info[1]
  1503. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1504. response = await get_response(request)
  1505. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1506. response = await wrapped_callback(
  1507. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1508. ret = await asyncio.wait_for(future, timeout=None)
  1509. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1510. return await fut
  1511. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1512. result = self.fn(*self.args, **self.kwargs)
  1513. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1514. return func(*args, **kwargs)
  1515. File "/home/flower/code/vue_ws/goods_wms/./userlogin/views.py", line 32, in login
  1516. "appid": staff_detail.app_id,
  1517. AttributeError: 'ListModel' object has no attribute 'app_id'
  1518. [2025-03-14 16:02:58,460][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1519. Traceback (most recent call last):
  1520. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1521. raise exc_info[1]
  1522. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1523. response = await get_response(request)
  1524. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1525. response = await wrapped_callback(
  1526. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1527. ret = await asyncio.wait_for(future, timeout=None)
  1528. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1529. return await fut
  1530. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1531. result = self.fn(*self.args, **self.kwargs)
  1532. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1533. return func(*args, **kwargs)
  1534. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1535. return view_func(*args, **kwargs)
  1536. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1537. return self.dispatch(request, *args, **kwargs)
  1538. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1539. response = self.handle_exception(exc)
  1540. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1541. self.raise_uncaught_exception(exc)
  1542. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1543. raise exc
  1544. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 497, in dispatch
  1545. self.initial(request, *args, **kwargs)
  1546. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 414, in initial
  1547. self.perform_authentication(request)
  1548. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 324, in perform_authentication
  1549. request.user
  1550. File "/usr/local/lib/python3.10/dist-packages/rest_framework/request.py", line 227, in user
  1551. self._authenticate()
  1552. File "/usr/local/lib/python3.10/dist-packages/rest_framework/request.py", line 380, in _authenticate
  1553. user_auth_tuple = authenticator.authenticate(self)
  1554. File "/home/flower/code/vue_ws/goods_wms/./utils/auth.py", line 14, in authenticate
  1555. user = staffs.objects.filter(openid__exact=str(token)).first()
  1556. NameError: name 'staffs' is not defined
  1557. [2025-03-14 16:03:00,545][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1558. Traceback (most recent call last):
  1559. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1560. raise exc_info[1]
  1561. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1562. response = await get_response(request)
  1563. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1564. response = await wrapped_callback(
  1565. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1566. ret = await asyncio.wait_for(future, timeout=None)
  1567. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1568. return await fut
  1569. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1570. result = self.fn(*self.args, **self.kwargs)
  1571. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1572. return func(*args, **kwargs)
  1573. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1574. return view_func(*args, **kwargs)
  1575. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1576. return self.dispatch(request, *args, **kwargs)
  1577. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1578. response = self.handle_exception(exc)
  1579. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1580. self.raise_uncaught_exception(exc)
  1581. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1582. raise exc
  1583. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 497, in dispatch
  1584. self.initial(request, *args, **kwargs)
  1585. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 414, in initial
  1586. self.perform_authentication(request)
  1587. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 324, in perform_authentication
  1588. request.user
  1589. File "/usr/local/lib/python3.10/dist-packages/rest_framework/request.py", line 227, in user
  1590. self._authenticate()
  1591. File "/usr/local/lib/python3.10/dist-packages/rest_framework/request.py", line 380, in _authenticate
  1592. user_auth_tuple = authenticator.authenticate(self)
  1593. File "/home/flower/code/vue_ws/goods_wms/./utils/auth.py", line 14, in authenticate
  1594. user = staffs.objects.filter(openid__exact=str(token)).first()
  1595. NameError: name 'staffs' is not defined
  1596. [2025-03-14 16:03:17,681][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1597. Traceback (most recent call last):
  1598. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1599. raise exc_info[1]
  1600. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1601. response = await get_response(request)
  1602. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1603. response = await wrapped_callback(
  1604. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1605. ret = await asyncio.wait_for(future, timeout=None)
  1606. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1607. return await fut
  1608. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1609. result = self.fn(*self.args, **self.kwargs)
  1610. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1611. return func(*args, **kwargs)
  1612. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1613. return view_func(*args, **kwargs)
  1614. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1615. return self.dispatch(request, *args, **kwargs)
  1616. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1617. response = self.handle_exception(exc)
  1618. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1619. self.raise_uncaught_exception(exc)
  1620. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1621. raise exc
  1622. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 497, in dispatch
  1623. self.initial(request, *args, **kwargs)
  1624. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 414, in initial
  1625. self.perform_authentication(request)
  1626. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 324, in perform_authentication
  1627. request.user
  1628. File "/usr/local/lib/python3.10/dist-packages/rest_framework/request.py", line 227, in user
  1629. self._authenticate()
  1630. File "/usr/local/lib/python3.10/dist-packages/rest_framework/request.py", line 380, in _authenticate
  1631. user_auth_tuple = authenticator.authenticate(self)
  1632. File "/home/flower/code/vue_ws/goods_wms/./utils/auth.py", line 14, in authenticate
  1633. user = staffs.objects.filter(openid__exact=str(token)).first()
  1634. NameError: name 'staffs' is not defined
  1635. [2025-03-14 17:11:26,865][django.request.log_response():241] [ERROR] Internal Server Error: /login/
  1636. Traceback (most recent call last):
  1637. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1638. raise exc_info[1]
  1639. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1640. response = await get_response(request)
  1641. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1642. response = await wrapped_callback(
  1643. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1644. ret = await asyncio.wait_for(future, timeout=None)
  1645. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1646. return await fut
  1647. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1648. result = self.fn(*self.args, **self.kwargs)
  1649. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1650. return func(*args, **kwargs)
  1651. File "/home/flower/code/vue_ws/goods_wms/./userlogin/views.py", line 48, in login
  1652. auth.login(request, user)
  1653. File "/usr/local/lib/python3.10/dist-packages/django/contrib/auth/__init__.py", line 144, in login
  1654. user_logged_in.send(sender=user.__class__, request=request, user=user)
  1655. File "/usr/local/lib/python3.10/dist-packages/django/dispatch/dispatcher.py", line 176, in send
  1656. return [
  1657. File "/usr/local/lib/python3.10/dist-packages/django/dispatch/dispatcher.py", line 177, in <listcomp>
  1658. (receiver, receiver(signal=self, sender=sender, **named))
  1659. File "/usr/local/lib/python3.10/dist-packages/django/contrib/auth/models.py", line 23, in update_last_login
  1660. user.save(update_fields=["last_login"])
  1661. File "/usr/local/lib/python3.10/dist-packages/django/db/models/base.py", line 795, in save
  1662. raise ValueError(
  1663. ValueError: The following fields do not exist in this model, are m2m fields, or are non-concrete fields: last_login
  1664. [2025-03-14 20:44:25,826][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1665. Traceback (most recent call last):
  1666. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1667. raise exc_info[1]
  1668. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1669. response = await get_response(request)
  1670. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1671. response = await wrapped_callback(
  1672. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1673. ret = await asyncio.wait_for(future, timeout=None)
  1674. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1675. return await fut
  1676. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1677. result = self.fn(*self.args, **self.kwargs)
  1678. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1679. return func(*args, **kwargs)
  1680. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1681. return view_func(*args, **kwargs)
  1682. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1683. return self.dispatch(request, *args, **kwargs)
  1684. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1685. response = self.handle_exception(exc)
  1686. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1687. self.raise_uncaught_exception(exc)
  1688. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1689. raise exc
  1690. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  1691. response = handler(request, *args, **kwargs)
  1692. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 121, in create
  1693. user = User.objects.create_user(username=str(data['staff_name']),
  1694. File "/usr/local/lib/python3.10/dist-packages/django/contrib/auth/models.py", line 161, in create_user
  1695. return self._create_user(username, email, password, **extra_fields)
  1696. File "/usr/local/lib/python3.10/dist-packages/django/contrib/auth/models.py", line 154, in _create_user
  1697. user.password = make_password(password)
  1698. File "/usr/local/lib/python3.10/dist-packages/django/contrib/auth/hashers.py", line 86, in make_password
  1699. raise TypeError(
  1700. TypeError: Password must be a string or bytes, got int.
  1701. [2025-03-14 20:44:31,078][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1702. Traceback (most recent call last):
  1703. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1704. raise exc_info[1]
  1705. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1706. response = await get_response(request)
  1707. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1708. response = await wrapped_callback(
  1709. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1710. ret = await asyncio.wait_for(future, timeout=None)
  1711. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1712. return await fut
  1713. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1714. result = self.fn(*self.args, **self.kwargs)
  1715. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1716. return func(*args, **kwargs)
  1717. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1718. return view_func(*args, **kwargs)
  1719. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1720. return self.dispatch(request, *args, **kwargs)
  1721. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1722. response = self.handle_exception(exc)
  1723. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1724. self.raise_uncaught_exception(exc)
  1725. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1726. raise exc
  1727. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  1728. response = handler(request, *args, **kwargs)
  1729. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 121, in create
  1730. user = User.objects.create_user(username=str(data['staff_name']),
  1731. File "/usr/local/lib/python3.10/dist-packages/django/contrib/auth/models.py", line 161, in create_user
  1732. return self._create_user(username, email, password, **extra_fields)
  1733. File "/usr/local/lib/python3.10/dist-packages/django/contrib/auth/models.py", line 154, in _create_user
  1734. user.password = make_password(password)
  1735. File "/usr/local/lib/python3.10/dist-packages/django/contrib/auth/hashers.py", line 86, in make_password
  1736. raise TypeError(
  1737. TypeError: Password must be a string or bytes, got int.
  1738. [2025-03-14 21:03:41,280][django.request.log_response():241] [ERROR] Internal Server Error: /register/
  1739. Traceback (most recent call last):
  1740. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1741. raise exc_info[1]
  1742. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1743. response = await get_response(request)
  1744. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1745. response = await wrapped_callback(
  1746. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1747. ret = await asyncio.wait_for(future, timeout=None)
  1748. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1749. return await fut
  1750. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1751. result = self.fn(*self.args, **self.kwargs)
  1752. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1753. return func(*args, **kwargs)
  1754. File "/usr/local/lib/python3.10/dist-packages/django/utils/decorators.py", line 46, in _wrapper
  1755. return bound_method(*args, **kwargs)
  1756. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1757. return view_func(*args, **kwargs)
  1758. File "/home/flower/code/vue_ws/goods_wms/./userregister/views.py", line 19, in register
  1759. post_data = json.loads(request.body.decode())
  1760. File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
  1761. return _default_decoder.decode(s)
  1762. File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
  1763. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  1764. File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
  1765. obj, end = self.scan_once(s, idx)
  1766. json.decoder.JSONDecodeError: Expecting ',' delimiter: line 4 column 2 (char 35)
  1767. [2025-03-14 21:10:47,058][django.request.log_response():241] [ERROR] Internal Server Error: /login/
  1768. Traceback (most recent call last):
  1769. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1770. raise exc_info[1]
  1771. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1772. response = await get_response(request)
  1773. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1774. response = await wrapped_callback(
  1775. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1776. ret = await asyncio.wait_for(future, timeout=None)
  1777. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1778. return await fut
  1779. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1780. result = self.fn(*self.args, **self.kwargs)
  1781. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1782. return func(*args, **kwargs)
  1783. File "/home/flower/code/vue_ws/goods_wms/./userlogin/views.py", line 28, in login
  1784. staff_id = staff.objects.filter(openid=user_detail.openid, staff_name=str(user_detail.name)).first().id
  1785. AttributeError: 'NoneType' object has no attribute 'openid'
  1786. [2025-03-14 21:11:07,084][django.request.log_response():241] [ERROR] Internal Server Error: /login/
  1787. Traceback (most recent call last):
  1788. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1789. raise exc_info[1]
  1790. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1791. response = await get_response(request)
  1792. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1793. response = await wrapped_callback(
  1794. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1795. ret = await asyncio.wait_for(future, timeout=None)
  1796. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1797. return await fut
  1798. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1799. result = self.fn(*self.args, **self.kwargs)
  1800. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1801. return func(*args, **kwargs)
  1802. File "/home/flower/code/vue_ws/goods_wms/./userlogin/views.py", line 28, in login
  1803. staff_id = staff.objects.filter(openid=user_detail.openid, staff_name=str(user_detail.name)).first().id
  1804. AttributeError: 'NoneType' object has no attribute 'openid'
  1805. [2025-03-14 21:11:24,677][django.request.log_response():241] [ERROR] Internal Server Error: /login/
  1806. Traceback (most recent call last):
  1807. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1808. raise exc_info[1]
  1809. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1810. response = await get_response(request)
  1811. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1812. response = await wrapped_callback(
  1813. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1814. ret = await asyncio.wait_for(future, timeout=None)
  1815. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1816. return await fut
  1817. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1818. result = self.fn(*self.args, **self.kwargs)
  1819. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1820. return func(*args, **kwargs)
  1821. File "/home/flower/code/vue_ws/goods_wms/./userlogin/views.py", line 28, in login
  1822. staff_id = staff.objects.filter(openid=user_detail.openid, staff_name=str(user_detail.name)).first().id
  1823. AttributeError: 'NoneType' object has no attribute 'openid'
  1824. [2025-03-14 21:22:27,218][django.request.log_response():241] [ERROR] Internal Server Error: /login/
  1825. Traceback (most recent call last):
  1826. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1827. raise exc_info[1]
  1828. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1829. response = await get_response(request)
  1830. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1831. response = await wrapped_callback(
  1832. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1833. ret = await asyncio.wait_for(future, timeout=None)
  1834. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1835. return await fut
  1836. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1837. result = self.fn(*self.args, **self.kwargs)
  1838. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1839. return func(*args, **kwargs)
  1840. File "/home/flower/code/vue_ws/goods_wms/./userlogin/views.py", line 28, in login
  1841. data = {
  1842. AttributeError: 'NoneType' object has no attribute 'openid'
  1843. [2025-03-14 21:23:01,370][django.request.log_response():241] [ERROR] Internal Server Error: /login/
  1844. Traceback (most recent call last):
  1845. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1846. raise exc_info[1]
  1847. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1848. response = await get_response(request)
  1849. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1850. response = await wrapped_callback(
  1851. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1852. ret = await asyncio.wait_for(future, timeout=None)
  1853. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1854. return await fut
  1855. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1856. result = self.fn(*self.args, **self.kwargs)
  1857. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1858. return func(*args, **kwargs)
  1859. File "/home/flower/code/vue_ws/goods_wms/./userlogin/views.py", line 27, in login
  1860. staff_detail = staff.objects.filter(staff_name=str(user_detail.name)).first()
  1861. NameError: name 'user_detail' is not defined
  1862. [2025-03-14 21:52:28,140][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1863. Traceback (most recent call last):
  1864. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1865. raise exc_info[1]
  1866. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1867. response = await get_response(request)
  1868. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1869. response = await wrapped_callback(
  1870. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1871. ret = await asyncio.wait_for(future, timeout=None)
  1872. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1873. return await fut
  1874. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1875. result = self.fn(*self.args, **self.kwargs)
  1876. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1877. return func(*args, **kwargs)
  1878. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1879. return view_func(*args, **kwargs)
  1880. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1881. return self.dispatch(request, *args, **kwargs)
  1882. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1883. response = self.handle_exception(exc)
  1884. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1885. self.raise_uncaught_exception(exc)
  1886. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1887. raise exc
  1888. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  1889. response = handler(request, *args, **kwargs)
  1890. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 78, in list
  1891. return super().list(request, *args, **kwargs)
  1892. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 38, in list
  1893. queryset = self.filter_queryset(self.get_queryset())
  1894. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 94, in get_queryset
  1895. del self.fields['check_code']
  1896. AttributeError: 'APIViewSet' object has no attribute 'fields'
  1897. [2025-03-14 22:04:28,496][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1898. Traceback (most recent call last):
  1899. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1900. raise exc_info[1]
  1901. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1902. response = await get_response(request)
  1903. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1904. response = await wrapped_callback(
  1905. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1906. ret = await asyncio.wait_for(future, timeout=None)
  1907. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1908. return await fut
  1909. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1910. result = self.fn(*self.args, **self.kwargs)
  1911. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1912. return func(*args, **kwargs)
  1913. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1914. return view_func(*args, **kwargs)
  1915. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1916. return self.dispatch(request, *args, **kwargs)
  1917. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1918. response = self.handle_exception(exc)
  1919. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1920. self.raise_uncaught_exception(exc)
  1921. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1922. raise exc
  1923. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  1924. response = handler(request, *args, **kwargs)
  1925. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 78, in list
  1926. return super().list(request, *args, **kwargs)
  1927. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 42, in list
  1928. serializer = self.get_serializer(page, many=True)
  1929. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 178, in get_serializer
  1930. if 'check_code' in serializer.fields:
  1931. AttributeError: 'ListSerializer' object has no attribute 'fields'
  1932. [2025-03-14 22:10:57,990][django.request.log_response():241] [ERROR] Internal Server Error: /staff/
  1933. Traceback (most recent call last):
  1934. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1935. raise exc_info[1]
  1936. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1937. response = await get_response(request)
  1938. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1939. response = await wrapped_callback(
  1940. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1941. ret = await asyncio.wait_for(future, timeout=None)
  1942. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1943. return await fut
  1944. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1945. result = self.fn(*self.args, **self.kwargs)
  1946. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  1947. return func(*args, **kwargs)
  1948. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  1949. return view_func(*args, **kwargs)
  1950. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  1951. return self.dispatch(request, *args, **kwargs)
  1952. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  1953. response = self.handle_exception(exc)
  1954. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  1955. self.raise_uncaught_exception(exc)
  1956. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  1957. raise exc
  1958. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  1959. response = handler(request, *args, **kwargs)
  1960. File "/home/flower/code/vue_ws/goods_wms/./staff/views.py", line 78, in list
  1961. return super().list(request, *args, **kwargs)
  1962. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 43, in list
  1963. return self.get_paginated_response(serializer.data)
  1964. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 768, in data
  1965. ret = super().data
  1966. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 253, in data
  1967. self._data = self.to_representation(self.instance)
  1968. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 686, in to_representation
  1969. return [
  1970. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 687, in <listcomp>
  1971. self.child.to_representation(item) for item in iterable
  1972. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 507, in to_representation
  1973. for field in fields:
  1974. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 368, in _readable_fields
  1975. for field in self.fields.values():
  1976. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  1977. res = instance.__dict__[self.name] = self.func(instance)
  1978. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 356, in fields
  1979. for key, value in self.get_fields().items():
  1980. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1052, in get_fields
  1981. field_names = self.get_field_names(declared_fields, info)
  1982. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1164, in get_field_names
  1983. assert field_name not in self._declared_fields, (
  1984. AssertionError: Cannot both declare the field 'check_code' and include it in the userStaffGetSerializer 'exclude' option. Remove the field or, if inherited from a parent serializer, disable with `check_code = None`.
  1985. [2025-03-15 16:18:20,970][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  1986. Traceback (most recent call last):
  1987. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  1988. raise exc_info[1]
  1989. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  1990. response = await get_response(request)
  1991. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  1992. response = await wrapped_callback(
  1993. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  1994. ret = await asyncio.wait_for(future, timeout=None)
  1995. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  1996. return await fut
  1997. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  1998. result = self.fn(*self.args, **self.kwargs)
  1999. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2000. return func(*args, **kwargs)
  2001. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2002. return view_func(*args, **kwargs)
  2003. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2004. return self.dispatch(request, *args, **kwargs)
  2005. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2006. response = self.handle_exception(exc)
  2007. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2008. self.raise_uncaught_exception(exc)
  2009. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2010. raise exc
  2011. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2012. response = handler(request, *args, **kwargs)
  2013. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 83, in create
  2014. serializer = self.get_serializer(data=request.data)
  2015. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 108, in get_serializer
  2016. serializer_class = self.get_serializer_class()
  2017. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 78, in get_serializer_class
  2018. return serializers.stockShelfSerializer
  2019. AttributeError: module 'stock.serializers' has no attribute 'stockShelfSerializer'
  2020. [2025-03-15 16:23:35,107][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2021. Traceback (most recent call last):
  2022. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2023. raise exc_info[1]
  2024. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2025. response = await get_response(request)
  2026. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2027. response = await wrapped_callback(
  2028. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2029. ret = await asyncio.wait_for(future, timeout=None)
  2030. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2031. return await fut
  2032. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2033. result = self.fn(*self.args, **self.kwargs)
  2034. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2035. return func(*args, **kwargs)
  2036. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2037. return view_func(*args, **kwargs)
  2038. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2039. return self.dispatch(request, *args, **kwargs)
  2040. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2041. response = self.handle_exception(exc)
  2042. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2043. self.raise_uncaught_exception(exc)
  2044. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2045. raise exc
  2046. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2047. response = handler(request, *args, **kwargs)
  2048. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 84, in create
  2049. serializer.is_valid(raise_exception=True)
  2050. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 227, in is_valid
  2051. self._validated_data = self.run_validation(self.initial_data)
  2052. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 426, in run_validation
  2053. value = self.to_internal_value(data)
  2054. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 479, in to_internal_value
  2055. for field in fields:
  2056. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 362, in _writable_fields
  2057. for field in self.fields.values():
  2058. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  2059. res = instance.__dict__[self.name] = self.func(instance)
  2060. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 356, in fields
  2061. for key, value in self.get_fields().items():
  2062. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1052, in get_fields
  2063. field_names = self.get_field_names(declared_fields, info)
  2064. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1175, in get_field_names
  2065. assert field_name in fields, (
  2066. AssertionError: The field 'row' was included on serializer stockShelfSerializer in the 'exclude' option, but does not match any model field.
  2067. [2025-03-15 16:24:34,969][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2068. Traceback (most recent call last):
  2069. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2070. raise exc_info[1]
  2071. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2072. response = await get_response(request)
  2073. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2074. response = await wrapped_callback(
  2075. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2076. ret = await asyncio.wait_for(future, timeout=None)
  2077. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2078. return await fut
  2079. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2080. result = self.fn(*self.args, **self.kwargs)
  2081. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2082. return func(*args, **kwargs)
  2083. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2084. return view_func(*args, **kwargs)
  2085. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2086. return self.dispatch(request, *args, **kwargs)
  2087. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2088. response = self.handle_exception(exc)
  2089. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2090. self.raise_uncaught_exception(exc)
  2091. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2092. raise exc
  2093. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2094. response = handler(request, *args, **kwargs)
  2095. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 84, in create
  2096. serializer.is_valid(raise_exception=True)
  2097. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 227, in is_valid
  2098. self._validated_data = self.run_validation(self.initial_data)
  2099. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 426, in run_validation
  2100. value = self.to_internal_value(data)
  2101. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 479, in to_internal_value
  2102. for field in fields:
  2103. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 362, in _writable_fields
  2104. for field in self.fields.values():
  2105. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  2106. res = instance.__dict__[self.name] = self.func(instance)
  2107. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 356, in fields
  2108. for key, value in self.get_fields().items():
  2109. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1052, in get_fields
  2110. field_names = self.get_field_names(declared_fields, info)
  2111. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1124, in get_field_names
  2112. assert not (fields is None and exclude is None), (
  2113. AssertionError: ("Creating a ModelSerializer without either the 'fields' attribute or the 'exclude' attribute has been deprecated since 3.3.0, and is now disallowed. Add an explicit fields = '__all__' to the stockShelfSerializer serializer.",)
  2114. [2025-03-15 16:26:45,259][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2115. Traceback (most recent call last):
  2116. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2117. raise exc_info[1]
  2118. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2119. response = await get_response(request)
  2120. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2121. response = await wrapped_callback(
  2122. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2123. ret = await asyncio.wait_for(future, timeout=None)
  2124. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2125. return await fut
  2126. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2127. result = self.fn(*self.args, **self.kwargs)
  2128. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2129. return func(*args, **kwargs)
  2130. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2131. return view_func(*args, **kwargs)
  2132. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2133. return self.dispatch(request, *args, **kwargs)
  2134. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2135. response = self.handle_exception(exc)
  2136. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2137. self.raise_uncaught_exception(exc)
  2138. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2139. raise exc
  2140. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2141. response = handler(request, *args, **kwargs)
  2142. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 79, in create
  2143. serializer = self.get_serializer(data=request.data)
  2144. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 108, in get_serializer
  2145. serializer_class = self.get_serializer_class()
  2146. File "/usr/local/lib/python3.10/dist-packages/rest_framework/generics.py", line 122, in get_serializer_class
  2147. assert self.serializer_class is not None, (
  2148. AssertionError: 'stockshelfViewSet' should either include a `serializer_class` attribute, or override the `get_serializer_class()` method.
  2149. [2025-03-15 16:34:01,764][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2150. Traceback (most recent call last):
  2151. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2152. raise exc_info[1]
  2153. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2154. response = await get_response(request)
  2155. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2156. response = await wrapped_callback(
  2157. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2158. ret = await asyncio.wait_for(future, timeout=None)
  2159. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2160. return await fut
  2161. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2162. result = self.fn(*self.args, **self.kwargs)
  2163. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2164. return func(*args, **kwargs)
  2165. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2166. return view_func(*args, **kwargs)
  2167. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2168. return self.dispatch(request, *args, **kwargs)
  2169. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2170. response = self.handle_exception(exc)
  2171. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2172. self.raise_uncaught_exception(exc)
  2173. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2174. raise exc
  2175. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2176. response = handler(request, *args, **kwargs)
  2177. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 84, in create
  2178. serializer.is_valid(raise_exception=True)
  2179. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 227, in is_valid
  2180. self._validated_data = self.run_validation(self.initial_data)
  2181. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 426, in run_validation
  2182. value = self.to_internal_value(data)
  2183. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 479, in to_internal_value
  2184. for field in fields:
  2185. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 362, in _writable_fields
  2186. for field in self.fields.values():
  2187. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  2188. res = instance.__dict__[self.name] = self.func(instance)
  2189. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 356, in fields
  2190. for key, value in self.get_fields().items():
  2191. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1052, in get_fields
  2192. field_names = self.get_field_names(declared_fields, info)
  2193. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1175, in get_field_names
  2194. assert field_name in fields, (
  2195. AssertionError: The field 'ip' was included on serializer stockShelfSerializer in the 'exclude' option, but does not match any model field.
  2196. [2025-03-15 16:35:14,837][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2197. Traceback (most recent call last):
  2198. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2199. raise exc_info[1]
  2200. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2201. response = await get_response(request)
  2202. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2203. response = await wrapped_callback(
  2204. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2205. ret = await asyncio.wait_for(future, timeout=None)
  2206. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2207. return await fut
  2208. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2209. result = self.fn(*self.args, **self.kwargs)
  2210. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2211. return func(*args, **kwargs)
  2212. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2213. return view_func(*args, **kwargs)
  2214. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2215. return self.dispatch(request, *args, **kwargs)
  2216. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2217. response = self.handle_exception(exc)
  2218. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2219. self.raise_uncaught_exception(exc)
  2220. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2221. raise exc
  2222. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2223. response = handler(request, *args, **kwargs)
  2224. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 84, in create
  2225. serializer.is_valid(raise_exception=True)
  2226. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 227, in is_valid
  2227. self._validated_data = self.run_validation(self.initial_data)
  2228. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 426, in run_validation
  2229. value = self.to_internal_value(data)
  2230. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 479, in to_internal_value
  2231. for field in fields:
  2232. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 362, in _writable_fields
  2233. for field in self.fields.values():
  2234. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  2235. res = instance.__dict__[self.name] = self.func(instance)
  2236. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 356, in fields
  2237. for key, value in self.get_fields().items():
  2238. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1052, in get_fields
  2239. field_names = self.get_field_names(declared_fields, info)
  2240. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1175, in get_field_names
  2241. assert field_name in fields, (
  2242. AssertionError: The field 'ip_address' was included on serializer stockShelfSerializer in the 'exclude' option, but does not match any model field.
  2243. [2025-03-15 16:43:42,844][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2244. Traceback (most recent call last):
  2245. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2246. raise exc_info[1]
  2247. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2248. response = await get_response(request)
  2249. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2250. response = await wrapped_callback(
  2251. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2252. ret = await asyncio.wait_for(future, timeout=None)
  2253. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2254. return await fut
  2255. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2256. result = self.fn(*self.args, **self.kwargs)
  2257. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2258. return func(*args, **kwargs)
  2259. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2260. return view_func(*args, **kwargs)
  2261. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2262. return self.dispatch(request, *args, **kwargs)
  2263. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2264. response = self.handle_exception(exc)
  2265. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2266. self.raise_uncaught_exception(exc)
  2267. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2268. raise exc
  2269. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2270. response = handler(request, *args, **kwargs)
  2271. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 86, in create
  2272. return Response(request.data, status=200, headers=headers)
  2273. NameError: name 'headers' is not defined
  2274. [2025-03-15 16:48:29,330][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2275. Traceback (most recent call last):
  2276. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2277. raise exc_info[1]
  2278. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2279. response = await get_response(request)
  2280. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2281. response = await wrapped_callback(
  2282. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2283. ret = await asyncio.wait_for(future, timeout=None)
  2284. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2285. return await fut
  2286. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2287. result = self.fn(*self.args, **self.kwargs)
  2288. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2289. return func(*args, **kwargs)
  2290. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2291. return view_func(*args, **kwargs)
  2292. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2293. return self.dispatch(request, *args, **kwargs)
  2294. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2295. response = self.handle_exception(exc)
  2296. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2297. self.raise_uncaught_exception(exc)
  2298. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2299. raise exc
  2300. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2301. response = handler(request, *args, **kwargs)
  2302. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 110, in create
  2303. instance = shelflist(
  2304. File "/usr/local/lib/python3.10/dist-packages/django/db/models/base.py", line 565, in __init__
  2305. raise TypeError(
  2306. TypeError: StockshelfModel() got unexpected keyword arguments: 'shelf_rows', 'shelf_cols', 'shelf_layers'
  2307. [2025-03-15 16:50:58,170][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2308. Traceback (most recent call last):
  2309. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 123, in create
  2310. with transaction.atomic():
  2311. NameError: name 'transaction' is not defined
  2312. During handling of the above exception, another exception occurred:
  2313. Traceback (most recent call last):
  2314. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2315. raise exc_info[1]
  2316. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2317. response = await get_response(request)
  2318. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2319. response = await wrapped_callback(
  2320. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2321. ret = await asyncio.wait_for(future, timeout=None)
  2322. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2323. return await fut
  2324. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2325. result = self.fn(*self.args, **self.kwargs)
  2326. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2327. return func(*args, **kwargs)
  2328. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2329. return view_func(*args, **kwargs)
  2330. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2331. return self.dispatch(request, *args, **kwargs)
  2332. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2333. response = self.handle_exception(exc)
  2334. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2335. self.raise_uncaught_exception(exc)
  2336. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2337. raise exc
  2338. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2339. response = handler(request, *args, **kwargs)
  2340. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 128, in create
  2341. status=status.HTTP_500_INTERNAL_SERVER_ERROR
  2342. NameError: name 'status' is not defined
  2343. [2025-03-15 16:51:36,437][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2344. Traceback (most recent call last):
  2345. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 123, in create
  2346. with transaction.atomic():
  2347. NameError: name 'transaction' is not defined
  2348. During handling of the above exception, another exception occurred:
  2349. Traceback (most recent call last):
  2350. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2351. raise exc_info[1]
  2352. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2353. response = await get_response(request)
  2354. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2355. response = await wrapped_callback(
  2356. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2357. ret = await asyncio.wait_for(future, timeout=None)
  2358. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2359. return await fut
  2360. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2361. result = self.fn(*self.args, **self.kwargs)
  2362. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2363. return func(*args, **kwargs)
  2364. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2365. return view_func(*args, **kwargs)
  2366. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2367. return self.dispatch(request, *args, **kwargs)
  2368. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2369. response = self.handle_exception(exc)
  2370. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2371. self.raise_uncaught_exception(exc)
  2372. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2373. raise exc
  2374. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2375. response = handler(request, *args, **kwargs)
  2376. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 128, in create
  2377. status=status.HTTP_500_INTERNAL_SERVER_ERROR
  2378. NameError: name 'status' is not defined
  2379. [2025-03-15 17:04:16,401][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2380. [2025-03-15 17:15:57,951][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2381. Traceback (most recent call last):
  2382. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2383. raise exc_info[1]
  2384. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2385. response = await get_response(request)
  2386. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2387. response = await wrapped_callback(
  2388. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2389. ret = await asyncio.wait_for(future, timeout=None)
  2390. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2391. return await fut
  2392. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2393. result = self.fn(*self.args, **self.kwargs)
  2394. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2395. return func(*args, **kwargs)
  2396. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2397. return view_func(*args, **kwargs)
  2398. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2399. return self.dispatch(request, *args, **kwargs)
  2400. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2401. response = self.handle_exception(exc)
  2402. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2403. self.raise_uncaught_exception(exc)
  2404. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2405. raise exc
  2406. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2407. response = handler(request, *args, **kwargs)
  2408. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 123, in create
  2409. if instance.is_created():
  2410. AttributeError: 'StockshelfModel' object has no attribute 'is_created'
  2411. [2025-03-15 17:20:20,387][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2412. Traceback (most recent call last):
  2413. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2414. raise exc_info[1]
  2415. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2416. response = await get_response(request)
  2417. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2418. response = await wrapped_callback(
  2419. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2420. ret = await asyncio.wait_for(future, timeout=None)
  2421. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2422. return await fut
  2423. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2424. result = self.fn(*self.args, **self.kwargs)
  2425. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2426. return func(*args, **kwargs)
  2427. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2428. return view_func(*args, **kwargs)
  2429. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2430. return self.dispatch(request, *args, **kwargs)
  2431. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2432. response = self.handle_exception(exc)
  2433. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2434. self.raise_uncaught_exception(exc)
  2435. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2436. raise exc
  2437. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2438. response = handler(request, *args, **kwargs)
  2439. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 104, in create
  2440. existing_positions = shelflist.get_existing_positions(shelf_name, rows, cols, layers)
  2441. AttributeError: type object 'StockshelfModel' has no attribute 'get_existing_positions'
  2442. [2025-03-15 17:21:54,421][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2443. Traceback (most recent call last):
  2444. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2445. raise exc_info[1]
  2446. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2447. response = await get_response(request)
  2448. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2449. response = await wrapped_callback(
  2450. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2451. ret = await asyncio.wait_for(future, timeout=None)
  2452. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2453. return await fut
  2454. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2455. result = self.fn(*self.args, **self.kwargs)
  2456. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2457. return func(*args, **kwargs)
  2458. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2459. return view_func(*args, **kwargs)
  2460. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2461. return self.dispatch(request, *args, **kwargs)
  2462. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2463. response = self.handle_exception(exc)
  2464. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2465. self.raise_uncaught_exception(exc)
  2466. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2467. raise exc
  2468. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2469. response = handler(request, *args, **kwargs)
  2470. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 104, in create
  2471. existing_positions = shelflist.get_existing_positions(shelf_name, rows, cols, layers)
  2472. AttributeError: type object 'StockshelfModel' has no attribute 'get_existing_positions'
  2473. [2025-03-15 18:04:14,418][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2474. Traceback (most recent call last):
  2475. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2476. raise exc_info[1]
  2477. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2478. response = await get_response(request)
  2479. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2480. response = await wrapped_callback(
  2481. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2482. ret = await asyncio.wait_for(future, timeout=None)
  2483. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2484. return await fut
  2485. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2486. result = self.fn(*self.args, **self.kwargs)
  2487. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2488. return func(*args, **kwargs)
  2489. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2490. return view_func(*args, **kwargs)
  2491. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2492. return self.dispatch(request, *args, **kwargs)
  2493. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2494. response = self.handle_exception(exc)
  2495. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2496. self.raise_uncaught_exception(exc)
  2497. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2498. raise exc
  2499. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2500. response = handler(request, *args, **kwargs)
  2501. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 106, in create
  2502. instances.append(shelflist(
  2503. File "/usr/local/lib/python3.10/dist-packages/django/db/models/base.py", line 565, in __init__
  2504. raise TypeError(
  2505. TypeError: StockshelfModel() got unexpected keyword arguments: 'stock_type'
  2506. [2025-03-15 18:06:02,460][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2507. Traceback (most recent call last):
  2508. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2509. raise exc_info[1]
  2510. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2511. response = await get_response(request)
  2512. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2513. response = await wrapped_callback(
  2514. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2515. ret = await asyncio.wait_for(future, timeout=None)
  2516. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2517. return await fut
  2518. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2519. result = self.fn(*self.args, **self.kwargs)
  2520. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2521. return func(*args, **kwargs)
  2522. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2523. return view_func(*args, **kwargs)
  2524. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2525. return self.dispatch(request, *args, **kwargs)
  2526. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2527. response = self.handle_exception(exc)
  2528. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2529. self.raise_uncaught_exception(exc)
  2530. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2531. raise exc
  2532. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2533. response = handler(request, *args, **kwargs)
  2534. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 106, in create
  2535. instances.append(shelflist(
  2536. File "/usr/local/lib/python3.10/dist-packages/django/db/models/base.py", line 565, in __init__
  2537. raise TypeError(
  2538. TypeError: StockshelfModel() got unexpected keyword arguments: 'stock_type'
  2539. [2025-03-15 19:14:23,394][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2540. Traceback (most recent call last):
  2541. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2542. raise exc_info[1]
  2543. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2544. response = await get_response(request)
  2545. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2546. response = await wrapped_callback(
  2547. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2548. ret = await asyncio.wait_for(future, timeout=None)
  2549. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2550. return await fut
  2551. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2552. result = self.fn(*self.args, **self.kwargs)
  2553. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2554. return func(*args, **kwargs)
  2555. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2556. return view_func(*args, **kwargs)
  2557. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2558. return self.dispatch(request, *args, **kwargs)
  2559. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2560. response = self.handle_exception(exc)
  2561. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2562. self.raise_uncaught_exception(exc)
  2563. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2564. raise exc
  2565. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2566. response = handler(request, *args, **kwargs)
  2567. File "/home/flower/code/vue_ws/goods_wms/./stock/views.py", line 114, in create
  2568. instances.append(shelflist(
  2569. File "/usr/local/lib/python3.10/dist-packages/django/db/models/base.py", line 565, in __init__
  2570. raise TypeError(
  2571. TypeError: StockshelfModel() got unexpected keyword arguments: 'total_rows', 'total_cols', 'total_layers'
  2572. [2025-03-15 19:15:05,402][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2573. [2025-03-15 20:49:15,791][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/1/
  2574. Traceback (most recent call last):
  2575. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2576. raise exc_info[1]
  2577. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2578. response = await get_response(request)
  2579. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2580. response = await wrapped_callback(
  2581. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2582. ret = await asyncio.wait_for(future, timeout=None)
  2583. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2584. return await fut
  2585. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2586. result = self.fn(*self.args, **self.kwargs)
  2587. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2588. return func(*args, **kwargs)
  2589. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2590. return view_func(*args, **kwargs)
  2591. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2592. return self.dispatch(request, *args, **kwargs)
  2593. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 511, in dispatch
  2594. self.response = self.finalize_response(request, response, *args, **kwargs)
  2595. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 423, in finalize_response
  2596. assert isinstance(response, HttpResponseBase), (
  2597. AssertionError: Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` to be returned from the view, but received a `<class 'NoneType'>`
  2598. [2025-03-16 14:41:36,955][django.request.log_response():241] [ERROR] Internal Server Error: /stock/bin/
  2599. Traceback (most recent call last):
  2600. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2601. raise exc_info[1]
  2602. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2603. response = await get_response(request)
  2604. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2605. response = await wrapped_callback(
  2606. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2607. ret = await asyncio.wait_for(future, timeout=None)
  2608. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2609. return await fut
  2610. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2611. result = self.fn(*self.args, **self.kwargs)
  2612. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2613. return func(*args, **kwargs)
  2614. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2615. return view_func(*args, **kwargs)
  2616. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2617. return self.dispatch(request, *args, **kwargs)
  2618. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2619. response = self.handle_exception(exc)
  2620. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2621. self.raise_uncaught_exception(exc)
  2622. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2623. raise exc
  2624. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2625. response = handler(request, *args, **kwargs)
  2626. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 43, in list
  2627. return self.get_paginated_response(serializer.data)
  2628. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 768, in data
  2629. ret = super().data
  2630. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 253, in data
  2631. self._data = self.to_representation(self.instance)
  2632. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 686, in to_representation
  2633. return [
  2634. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 687, in <listcomp>
  2635. self.child.to_representation(item) for item in iterable
  2636. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 507, in to_representation
  2637. for field in fields:
  2638. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 368, in _readable_fields
  2639. for field in self.fields.values():
  2640. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  2641. res = instance.__dict__[self.name] = self.func(instance)
  2642. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 356, in fields
  2643. for key, value in self.get_fields().items():
  2644. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1052, in get_fields
  2645. field_names = self.get_field_names(declared_fields, info)
  2646. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1175, in get_field_names
  2647. assert field_name in fields, (
  2648. AssertionError: The field 'empty_labelshelf_department' was included on serializer stockShelfSerializer in the 'exclude' option, but does not match any model field.
  2649. [2025-03-16 14:41:38,092][django.request.log_response():241] [ERROR] Internal Server Error: /stock/bin/
  2650. Traceback (most recent call last):
  2651. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2652. raise exc_info[1]
  2653. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2654. response = await get_response(request)
  2655. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2656. response = await wrapped_callback(
  2657. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2658. ret = await asyncio.wait_for(future, timeout=None)
  2659. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2660. return await fut
  2661. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2662. result = self.fn(*self.args, **self.kwargs)
  2663. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2664. return func(*args, **kwargs)
  2665. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2666. return view_func(*args, **kwargs)
  2667. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2668. return self.dispatch(request, *args, **kwargs)
  2669. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2670. response = self.handle_exception(exc)
  2671. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2672. self.raise_uncaught_exception(exc)
  2673. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2674. raise exc
  2675. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2676. response = handler(request, *args, **kwargs)
  2677. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 43, in list
  2678. return self.get_paginated_response(serializer.data)
  2679. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 768, in data
  2680. ret = super().data
  2681. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 253, in data
  2682. self._data = self.to_representation(self.instance)
  2683. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 686, in to_representation
  2684. return [
  2685. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 687, in <listcomp>
  2686. self.child.to_representation(item) for item in iterable
  2687. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 507, in to_representation
  2688. for field in fields:
  2689. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 368, in _readable_fields
  2690. for field in self.fields.values():
  2691. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  2692. res = instance.__dict__[self.name] = self.func(instance)
  2693. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 356, in fields
  2694. for key, value in self.get_fields().items():
  2695. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1052, in get_fields
  2696. field_names = self.get_field_names(declared_fields, info)
  2697. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1175, in get_field_names
  2698. assert field_name in fields, (
  2699. AssertionError: The field 'empty_labelshelf_department' was included on serializer stockShelfSerializer in the 'exclude' option, but does not match any model field.
  2700. [2025-03-16 14:42:41,265][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2701. Traceback (most recent call last):
  2702. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2703. raise exc_info[1]
  2704. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2705. response = await get_response(request)
  2706. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2707. response = await wrapped_callback(
  2708. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2709. ret = await asyncio.wait_for(future, timeout=None)
  2710. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2711. return await fut
  2712. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2713. result = self.fn(*self.args, **self.kwargs)
  2714. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2715. return func(*args, **kwargs)
  2716. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2717. return view_func(*args, **kwargs)
  2718. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2719. return self.dispatch(request, *args, **kwargs)
  2720. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2721. response = self.handle_exception(exc)
  2722. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2723. self.raise_uncaught_exception(exc)
  2724. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2725. raise exc
  2726. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2727. response = handler(request, *args, **kwargs)
  2728. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 43, in list
  2729. return self.get_paginated_response(serializer.data)
  2730. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 768, in data
  2731. ret = super().data
  2732. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 253, in data
  2733. self._data = self.to_representation(self.instance)
  2734. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 686, in to_representation
  2735. return [
  2736. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 687, in <listcomp>
  2737. self.child.to_representation(item) for item in iterable
  2738. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 507, in to_representation
  2739. for field in fields:
  2740. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 368, in _readable_fields
  2741. for field in self.fields.values():
  2742. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  2743. res = instance.__dict__[self.name] = self.func(instance)
  2744. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 356, in fields
  2745. for key, value in self.get_fields().items():
  2746. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1052, in get_fields
  2747. field_names = self.get_field_names(declared_fields, info)
  2748. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1175, in get_field_names
  2749. assert field_name in fields, (
  2750. AssertionError: The field 'empty_labelshelf_department' was included on serializer stockShelfSerializer in the 'exclude' option, but does not match any model field.
  2751. [2025-03-16 14:44:47,940][django.request.log_response():241] [ERROR] Internal Server Error: /stock/bin/
  2752. Traceback (most recent call last):
  2753. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2754. raise exc_info[1]
  2755. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2756. response = await get_response(request)
  2757. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2758. response = await wrapped_callback(
  2759. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2760. ret = await asyncio.wait_for(future, timeout=None)
  2761. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2762. return await fut
  2763. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2764. result = self.fn(*self.args, **self.kwargs)
  2765. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2766. return func(*args, **kwargs)
  2767. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2768. return view_func(*args, **kwargs)
  2769. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2770. return self.dispatch(request, *args, **kwargs)
  2771. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2772. response = self.handle_exception(exc)
  2773. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2774. self.raise_uncaught_exception(exc)
  2775. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2776. raise exc
  2777. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2778. response = handler(request, *args, **kwargs)
  2779. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 43, in list
  2780. return self.get_paginated_response(serializer.data)
  2781. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 768, in data
  2782. ret = super().data
  2783. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 253, in data
  2784. self._data = self.to_representation(self.instance)
  2785. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 686, in to_representation
  2786. return [
  2787. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 687, in <listcomp>
  2788. self.child.to_representation(item) for item in iterable
  2789. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 507, in to_representation
  2790. for field in fields:
  2791. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 368, in _readable_fields
  2792. for field in self.fields.values():
  2793. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  2794. res = instance.__dict__[self.name] = self.func(instance)
  2795. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 356, in fields
  2796. for key, value in self.get_fields().items():
  2797. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1052, in get_fields
  2798. field_names = self.get_field_names(declared_fields, info)
  2799. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1175, in get_field_names
  2800. assert field_name in fields, (
  2801. AssertionError: The field 'goods_batchgoods_std' was included on serializer stocklistSerializer in the 'exclude' option, but does not match any model field.
  2802. [2025-03-16 14:46:10,116][django.request.log_response():241] [ERROR] Internal Server Error: /stock/bin/
  2803. Traceback (most recent call last):
  2804. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2805. raise exc_info[1]
  2806. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2807. response = await get_response(request)
  2808. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2809. response = await wrapped_callback(
  2810. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2811. ret = await asyncio.wait_for(future, timeout=None)
  2812. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2813. return await fut
  2814. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2815. result = self.fn(*self.args, **self.kwargs)
  2816. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2817. return func(*args, **kwargs)
  2818. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2819. return view_func(*args, **kwargs)
  2820. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2821. return self.dispatch(request, *args, **kwargs)
  2822. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2823. response = self.handle_exception(exc)
  2824. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2825. self.raise_uncaught_exception(exc)
  2826. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2827. raise exc
  2828. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2829. response = handler(request, *args, **kwargs)
  2830. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 43, in list
  2831. return self.get_paginated_response(serializer.data)
  2832. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 768, in data
  2833. ret = super().data
  2834. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 253, in data
  2835. self._data = self.to_representation(self.instance)
  2836. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 686, in to_representation
  2837. return [
  2838. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 687, in <listcomp>
  2839. self.child.to_representation(item) for item in iterable
  2840. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 507, in to_representation
  2841. for field in fields:
  2842. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 368, in _readable_fields
  2843. for field in self.fields.values():
  2844. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  2845. res = instance.__dict__[self.name] = self.func(instance)
  2846. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 356, in fields
  2847. for key, value in self.get_fields().items():
  2848. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1052, in get_fields
  2849. field_names = self.get_field_names(declared_fields, info)
  2850. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1175, in get_field_names
  2851. assert field_name in fields, (
  2852. AssertionError: The field 'goods_batchgoods_std' was included on serializer stocklistSerializer in the 'exclude' option, but does not match any model field.
  2853. [2025-03-16 14:52:42,946][django.request.log_response():241] [ERROR] Internal Server Error: /stock/management/
  2854. Traceback (most recent call last):
  2855. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2856. raise exc_info[1]
  2857. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2858. response = await get_response(request)
  2859. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2860. response = await wrapped_callback(
  2861. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2862. ret = await asyncio.wait_for(future, timeout=None)
  2863. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2864. return await fut
  2865. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2866. result = self.fn(*self.args, **self.kwargs)
  2867. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2868. return func(*args, **kwargs)
  2869. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2870. return view_func(*args, **kwargs)
  2871. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2872. return self.dispatch(request, *args, **kwargs)
  2873. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2874. response = self.handle_exception(exc)
  2875. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2876. self.raise_uncaught_exception(exc)
  2877. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2878. raise exc
  2879. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2880. response = handler(request, *args, **kwargs)
  2881. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 43, in list
  2882. return self.get_paginated_response(serializer.data)
  2883. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 768, in data
  2884. ret = super().data
  2885. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 253, in data
  2886. self._data = self.to_representation(self.instance)
  2887. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 686, in to_representation
  2888. return [
  2889. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 687, in <listcomp>
  2890. self.child.to_representation(item) for item in iterable
  2891. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 507, in to_representation
  2892. for field in fields:
  2893. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 368, in _readable_fields
  2894. for field in self.fields.values():
  2895. File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 57, in __get__
  2896. res = instance.__dict__[self.name] = self.func(instance)
  2897. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 356, in fields
  2898. for key, value in self.get_fields().items():
  2899. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1052, in get_fields
  2900. field_names = self.get_field_names(declared_fields, info)
  2901. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 1175, in get_field_names
  2902. assert field_name in fields, (
  2903. AssertionError: The field 'empty_labelshelf_department' was included on serializer stockShelfSerializer in the 'exclude' option, but does not match any model field.
  2904. [2025-03-16 19:35:15,500][django.request.log_response():241] [ERROR] Internal Server Error: /reportcenter/flow/
  2905. Traceback (most recent call last):
  2906. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2907. raise exc_info[1]
  2908. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2909. response = await get_response(request)
  2910. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2911. response = await wrapped_callback(
  2912. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2913. ret = await asyncio.wait_for(future, timeout=None)
  2914. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2915. return await fut
  2916. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2917. result = self.fn(*self.args, **self.kwargs)
  2918. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2919. return func(*args, **kwargs)
  2920. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2921. return view_func(*args, **kwargs)
  2922. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2923. return self.dispatch(request, *args, **kwargs)
  2924. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2925. response = self.handle_exception(exc)
  2926. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2927. self.raise_uncaught_exception(exc)
  2928. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2929. raise exc
  2930. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2931. response = handler(request, *args, **kwargs)
  2932. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 43, in list
  2933. return self.get_paginated_response(serializer.data)
  2934. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 768, in data
  2935. ret = super().data
  2936. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 253, in data
  2937. self._data = self.to_representation(self.instance)
  2938. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 686, in to_representation
  2939. return [
  2940. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 687, in <listcomp>
  2941. self.child.to_representation(item) for item in iterable
  2942. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 522, in to_representation
  2943. ret[field.field_name] = field.to_representation(attribute)
  2944. File "/usr/local/lib/python3.10/dist-packages/rest_framework/fields.py", line 915, in to_representation
  2945. return int(value)
  2946. ValueError: invalid literal for int() with base 10: ''
  2947. [2025-03-16 19:36:46,324][django.request.log_response():241] [ERROR] Internal Server Error: /reportcenter/flow/
  2948. Traceback (most recent call last):
  2949. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2950. raise exc_info[1]
  2951. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2952. response = await get_response(request)
  2953. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2954. response = await wrapped_callback(
  2955. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2956. ret = await asyncio.wait_for(future, timeout=None)
  2957. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  2958. return await fut
  2959. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  2960. result = self.fn(*self.args, **self.kwargs)
  2961. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  2962. return func(*args, **kwargs)
  2963. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  2964. return view_func(*args, **kwargs)
  2965. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  2966. return self.dispatch(request, *args, **kwargs)
  2967. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  2968. response = self.handle_exception(exc)
  2969. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  2970. self.raise_uncaught_exception(exc)
  2971. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  2972. raise exc
  2973. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  2974. response = handler(request, *args, **kwargs)
  2975. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 43, in list
  2976. return self.get_paginated_response(serializer.data)
  2977. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 768, in data
  2978. ret = super().data
  2979. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 253, in data
  2980. self._data = self.to_representation(self.instance)
  2981. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 686, in to_representation
  2982. return [
  2983. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 687, in <listcomp>
  2984. self.child.to_representation(item) for item in iterable
  2985. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 522, in to_representation
  2986. ret[field.field_name] = field.to_representation(attribute)
  2987. File "/usr/local/lib/python3.10/dist-packages/rest_framework/fields.py", line 915, in to_representation
  2988. return int(value)
  2989. ValueError: invalid literal for int() with base 10: ''
  2990. [2025-03-16 19:40:38,901][django.request.log_response():241] [ERROR] Internal Server Error: /reportcenter/flow/
  2991. Traceback (most recent call last):
  2992. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  2993. raise exc_info[1]
  2994. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  2995. response = await get_response(request)
  2996. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  2997. response = await wrapped_callback(
  2998. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  2999. ret = await asyncio.wait_for(future, timeout=None)
  3000. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  3001. return await fut
  3002. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  3003. result = self.fn(*self.args, **self.kwargs)
  3004. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  3005. return func(*args, **kwargs)
  3006. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  3007. return view_func(*args, **kwargs)
  3008. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  3009. return self.dispatch(request, *args, **kwargs)
  3010. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  3011. response = self.handle_exception(exc)
  3012. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  3013. self.raise_uncaught_exception(exc)
  3014. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  3015. raise exc
  3016. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  3017. response = handler(request, *args, **kwargs)
  3018. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 43, in list
  3019. return self.get_paginated_response(serializer.data)
  3020. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 768, in data
  3021. ret = super().data
  3022. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 253, in data
  3023. self._data = self.to_representation(self.instance)
  3024. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 686, in to_representation
  3025. return [
  3026. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 687, in <listcomp>
  3027. self.child.to_representation(item) for item in iterable
  3028. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 522, in to_representation
  3029. ret[field.field_name] = field.to_representation(attribute)
  3030. File "/usr/local/lib/python3.10/dist-packages/rest_framework/fields.py", line 915, in to_representation
  3031. return int(value)
  3032. ValueError: invalid literal for int() with base 10: ''
  3033. [2025-03-16 19:42:29,235][django.request.log_response():241] [ERROR] Internal Server Error: /reportcenter/flow/
  3034. Traceback (most recent call last):
  3035. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  3036. raise exc_info[1]
  3037. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  3038. response = await get_response(request)
  3039. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  3040. response = await wrapped_callback(
  3041. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  3042. ret = await asyncio.wait_for(future, timeout=None)
  3043. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  3044. return await fut
  3045. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  3046. result = self.fn(*self.args, **self.kwargs)
  3047. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  3048. return func(*args, **kwargs)
  3049. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  3050. return view_func(*args, **kwargs)
  3051. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  3052. return self.dispatch(request, *args, **kwargs)
  3053. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  3054. response = self.handle_exception(exc)
  3055. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  3056. self.raise_uncaught_exception(exc)
  3057. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  3058. raise exc
  3059. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  3060. response = handler(request, *args, **kwargs)
  3061. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 43, in list
  3062. return self.get_paginated_response(serializer.data)
  3063. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 768, in data
  3064. ret = super().data
  3065. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 253, in data
  3066. self._data = self.to_representation(self.instance)
  3067. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 686, in to_representation
  3068. return [
  3069. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 687, in <listcomp>
  3070. self.child.to_representation(item) for item in iterable
  3071. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 522, in to_representation
  3072. ret[field.field_name] = field.to_representation(attribute)
  3073. File "/usr/local/lib/python3.10/dist-packages/rest_framework/fields.py", line 915, in to_representation
  3074. return int(value)
  3075. ValueError: invalid literal for int() with base 10: ''
  3076. [2025-03-16 19:53:08,274][django.request.log_response():241] [ERROR] Internal Server Error: /reportcenter/flow/
  3077. Traceback (most recent call last):
  3078. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 472, in thread_handler
  3079. raise exc_info[1]
  3080. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
  3081. response = await get_response(request)
  3082. File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
  3083. response = await wrapped_callback(
  3084. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 435, in __call__
  3085. ret = await asyncio.wait_for(future, timeout=None)
  3086. File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
  3087. return await fut
  3088. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  3089. result = self.fn(*self.args, **self.kwargs)
  3090. File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 476, in thread_handler
  3091. return func(*args, **kwargs)
  3092. File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  3093. return view_func(*args, **kwargs)
  3094. File "/usr/local/lib/python3.10/dist-packages/rest_framework/viewsets.py", line 125, in view
  3095. return self.dispatch(request, *args, **kwargs)
  3096. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 509, in dispatch
  3097. response = self.handle_exception(exc)
  3098. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 469, in handle_exception
  3099. self.raise_uncaught_exception(exc)
  3100. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  3101. raise exc
  3102. File "/usr/local/lib/python3.10/dist-packages/rest_framework/views.py", line 506, in dispatch
  3103. response = handler(request, *args, **kwargs)
  3104. File "/usr/local/lib/python3.10/dist-packages/rest_framework/mixins.py", line 43, in list
  3105. return self.get_paginated_response(serializer.data)
  3106. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 768, in data
  3107. ret = super().data
  3108. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 253, in data
  3109. self._data = self.to_representation(self.instance)
  3110. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 686, in to_representation
  3111. return [
  3112. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 687, in <listcomp>
  3113. self.child.to_representation(item) for item in iterable
  3114. File "/usr/local/lib/python3.10/dist-packages/rest_framework/serializers.py", line 522, in to_representation
  3115. ret[field.field_name] = field.to_representation(attribute)
  3116. File "/usr/local/lib/python3.10/dist-packages/rest_framework/fields.py", line 915, in to_representation
  3117. return int(value)
  3118. ValueError: invalid literal for int() with base 10: '无'