hwj.log 396 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257
  1. <<<<<<< HEAD
  2. WARNING 2019-10-26 15:31:41,879 log 228 Forbidden: /invoice/
  3. WARNING 2019-10-26 15:31:41,879 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39
  4. INFO 2019-10-26 15:35:42,526 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  5. WARNING 2019-10-26 15:35:46,076 log 228 Forbidden: /invoice/
  6. WARNING 2019-10-26 15:35:46,076 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39
  7. WARNING 2019-10-26 15:37:52,221 log 228 Forbidden: /invoice/
  8. WARNING 2019-10-26 15:37:52,222 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39
  9. WARNING 2019-10-26 15:39:56,569 log 228 Forbidden: /invoice/
  10. WARNING 2019-10-26 15:39:56,570 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  11. WARNING 2019-10-26 15:40:06,688 log 228 Forbidden: /invoice/
  12. WARNING 2019-10-26 15:40:06,688 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39
  13. INFO 2019-10-26 15:41:08,490 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  14. WARNING 2019-10-26 15:43:52,321 log 228 Forbidden: /invoice/
  15. WARNING 2019-10-26 15:43:52,321 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39
  16. INFO 2019-10-26 15:44:05,338 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  17. INFO 2019-10-26 15:44:32,840 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  18. WARNING 2019-10-26 15:44:36,934 log 228 Forbidden: /invoice/
  19. WARNING 2019-10-26 15:44:36,934 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  20. WARNING 2019-10-26 15:44:55,973 log 228 Forbidden: /invoice/
  21. WARNING 2019-10-26 15:44:55,973 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  22. WARNING 2019-10-26 15:45:16,193 log 228 Forbidden: /invoice/
  23. WARNING 2019-10-26 15:45:16,194 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  24. INFO 2019-10-26 15:45:32,802 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  25. INFO 2019-10-26 15:45:40,839 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  26. WARNING 2019-10-26 15:45:43,261 log 228 Forbidden: /invoice/
  27. WARNING 2019-10-26 15:45:43,262 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  28. INFO 2019-10-26 15:45:51,198 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  29. INFO 2019-10-26 15:45:53,169 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  30. INFO 2019-10-26 15:45:56,463 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  31. INFO 2019-10-26 15:45:57,690 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  32. INFO 2019-10-26 15:45:58,635 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  33. INFO 2019-10-26 15:45:59,382 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  34. WARNING 2019-10-26 15:46:39,703 log 228 Forbidden: /invoice/
  35. WARNING 2019-10-26 15:46:39,704 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  36. WARNING 2019-10-26 15:46:40,883 log 228 Forbidden: /invoice/
  37. WARNING 2019-10-26 15:46:40,883 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  38. INFO 2019-10-26 15:46:44,675 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  39. INFO 2019-10-26 15:46:47,737 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  40. WARNING 2019-10-26 15:46:48,995 log 228 Forbidden: /invoice/
  41. WARNING 2019-10-26 15:46:48,996 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  42. INFO 2019-10-26 15:46:52,536 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  43. WARNING 2019-10-26 15:46:53,809 log 228 Forbidden: /invoice/
  44. WARNING 2019-10-26 15:46:53,809 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  45. WARNING 2019-10-26 15:46:55,169 log 228 Forbidden: /invoice/
  46. WARNING 2019-10-26 15:46:55,169 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  47. INFO 2019-10-26 15:47:22,946 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24
  48. INFO 2019-10-26 15:47:25,783 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24
  49. INFO 2019-10-26 15:47:46,364 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  50. WARNING 2019-10-26 15:47:48,702 log 228 Forbidden: /invoice/
  51. WARNING 2019-10-26 15:47:48,702 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  52. INFO 2019-10-26 15:57:11,237 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  53. WARNING 2019-10-26 15:57:13,888 log 228 Forbidden: /invoice/
  54. WARNING 2019-10-26 15:57:13,889 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  55. WARNING 2019-10-26 15:57:15,422 log 228 Forbidden: /invoice/
  56. WARNING 2019-10-26 15:57:15,422 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  57. INFO 2019-10-26 15:57:42,581 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24
  58. INFO 2019-10-26 15:57:44,459 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24
  59. INFO 2019-10-26 15:58:22,380 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  60. INFO 2019-10-26 16:00:24,377 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24
  61. INFO 2019-10-26 16:01:06,398 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  62. WARNING 2019-10-26 16:01:08,375 log 228 Forbidden: /invoice/
  63. WARNING 2019-10-26 16:01:08,376 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  64. INFO 2019-10-26 16:01:41,337 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  65. WARNING 2019-10-26 16:01:42,339 log 228 Forbidden: /invoice/
  66. WARNING 2019-10-26 16:01:42,339 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  67. WARNING 2019-10-26 16:01:55,226 log 228 Forbidden: /invoice/
  68. WARNING 2019-10-26 16:01:55,227 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  69. INFO 2019-10-26 16:10:06,833 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  70. INFO 2019-10-26 16:11:23,976 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  71. INFO 2019-10-26 16:11:51,199 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  72. ERROR 2019-10-26 16:22:50,204 log 228 Internal Server Error: /paymentoperation/
  73. Traceback (most recent call last):
  74. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  75. response = get_response(request)
  76. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  77. response = self.process_exception_by_middleware(e, request)
  78. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  79. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  80. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  81. return self.dispatch(request, *args, **kwargs)
  82. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  83. return handler(request, *args, **kwargs)
  84. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 101, in post
  85. ,datetime.datetime.strptime(RP_DD, '%Y-%m-%d'),RP_NO])
  86. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  87. return super().execute(sql, params)
  88. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  89. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  90. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  91. return executor(sql, params, many, context)
  92. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  93. return self.cursor.execute(sql, params)
  94. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 542, in execute
  95. sql = self.format_sql(sql, params)
  96. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 510, in format_sql
  97. sql = sql % tuple('?' * len(params))
  98. TypeError: not all arguments converted during string formatting
  99. ERROR 2019-10-26 16:22:50,206 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 500 110930
  100. INFO 2019-10-26 16:24:33,700 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  101. WARNING 2019-10-26 16:25:03,979 log 228 Forbidden: /invoice/
  102. WARNING 2019-10-26 16:25:03,980 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 48
  103. INFO 2019-10-26 16:25:17,685 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  104. INFO 2019-10-26 16:25:20,901 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  105. INFO 2019-10-26 16:25:27,596 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  106. INFO 2019-10-26 16:27:43,951 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  107. WARNING 2019-10-26 16:47:21,302 log 228 Forbidden: /paymentoperation/
  108. WARNING 2019-10-26 16:47:21,302 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 15
  109. WARNING 2019-10-26 16:49:22,716 log 228 Forbidden: /paymentoperation/
  110. WARNING 2019-10-26 16:49:22,716 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 15
  111. ERROR 2019-10-26 16:49:54,113 log 228 Internal Server Error: /paymentoperation/
  112. Traceback (most recent call last):
  113. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  114. return self.cursor.execute(sql, params)
  115. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  116. return self.cursor.execute(sql, params)
  117. pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  118. The above exception was the direct cause of the following exception:
  119. Traceback (most recent call last):
  120. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  121. response = get_response(request)
  122. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  123. response = self.process_exception_by_middleware(e, request)
  124. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  125. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  126. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  127. return self.dispatch(request, *args, **kwargs)
  128. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  129. return handler(request, *args, **kwargs)
  130. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  131. return func(*args, **kwds)
  132. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 180, in put
  133. row_AMTN = cursor.execute("""SELECT AMTN_BC FROM TF_MON WHERE RP_NO=%s AND PR_ID='2'""", [RP_NO]).fetchall()[0][0]
  134. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  135. return super().execute(sql, params)
  136. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  137. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  138. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  139. return executor(sql, params, many, context)
  140. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  141. return self.cursor.execute(sql, params)
  142. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  143. raise dj_exc_value.with_traceback(traceback) from exc_value
  144. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  145. return self.cursor.execute(sql, params)
  146. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  147. return self.cursor.execute(sql, params)
  148. django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  149. ERROR 2019-10-26 16:49:54,117 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 500 126543
  150. ERROR 2019-10-26 16:50:35,155 log 228 Internal Server Error: /paymentoperation/
  151. Traceback (most recent call last):
  152. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  153. return self.cursor.execute(sql, params)
  154. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  155. return self.cursor.execute(sql, params)
  156. pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  157. The above exception was the direct cause of the following exception:
  158. Traceback (most recent call last):
  159. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  160. response = get_response(request)
  161. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  162. response = self.process_exception_by_middleware(e, request)
  163. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  164. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  165. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  166. return self.dispatch(request, *args, **kwargs)
  167. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  168. return handler(request, *args, **kwargs)
  169. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  170. return func(*args, **kwds)
  171. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 180, in put
  172. row_AMTN = cursor.execute("""SELECT AMTN_BC FROM TF_MON WHERE RP_NO=%s AND PR_ID='2'""", [RP_NO]).fetchall()[0][0]
  173. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  174. return super().execute(sql, params)
  175. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  176. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  177. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  178. return executor(sql, params, many, context)
  179. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  180. return self.cursor.execute(sql, params)
  181. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  182. raise dj_exc_value.with_traceback(traceback) from exc_value
  183. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  184. return self.cursor.execute(sql, params)
  185. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  186. return self.cursor.execute(sql, params)
  187. django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  188. ERROR 2019-10-26 16:50:35,157 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 500 126546
  189. ERROR 2019-10-26 16:51:00,696 log 228 Internal Server Error: /paymentoperation/
  190. Traceback (most recent call last):
  191. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  192. return self.cursor.execute(sql, params)
  193. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  194. return self.cursor.execute(sql, params)
  195. pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  196. The above exception was the direct cause of the following exception:
  197. Traceback (most recent call last):
  198. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  199. response = get_response(request)
  200. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  201. response = self.process_exception_by_middleware(e, request)
  202. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  203. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  204. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  205. return self.dispatch(request, *args, **kwargs)
  206. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  207. return handler(request, *args, **kwargs)
  208. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  209. return func(*args, **kwds)
  210. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 180, in put
  211. row_AMTN = cursor.execute("""SELECT AMTN_BC FROM TF_MON WHERE RP_NO=%s AND PR_ID='2'""", [RP_NO]).fetchall()[0][0]
  212. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  213. return super().execute(sql, params)
  214. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  215. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  216. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  217. return executor(sql, params, many, context)
  218. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  219. return self.cursor.execute(sql, params)
  220. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  221. raise dj_exc_value.with_traceback(traceback) from exc_value
  222. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  223. return self.cursor.execute(sql, params)
  224. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  225. return self.cursor.execute(sql, params)
  226. django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  227. ERROR 2019-10-26 16:51:00,698 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 500 126546
  228. WARNING 2019-10-26 17:00:46,983 log 228 Forbidden: /paymentoperation/
  229. WARNING 2019-10-26 17:00:46,983 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21
  230. WARNING 2019-10-26 17:00:59,051 log 228 Forbidden: /paymentoperation/
  231. WARNING 2019-10-26 17:00:59,051 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21
  232. WARNING 2019-10-26 17:01:35,345 log 228 Forbidden: /paymentoperation/
  233. WARNING 2019-10-26 17:01:35,345 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21
  234. WARNING 2019-10-26 17:02:54,095 log 228 Forbidden: /paymentoperation/
  235. WARNING 2019-10-26 17:02:54,095 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21
  236. INFO 2019-10-26 17:03:37,523 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36
  237. INFO 2019-10-26 17:04:55,512 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36
  238. WARNING 2019-10-26 17:30:24,738 log 228 Forbidden: /paymentoperation/
  239. WARNING 2019-10-26 17:30:24,739 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15
  240. ERROR 2019-10-26 17:30:59,238 log 228 Internal Server Error: /paymentoperation/
  241. Traceback (most recent call last):
  242. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  243. return self.cursor.execute(sql, params)
  244. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  245. return self.cursor.execute(sql, params)
  246. pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  247. The above exception was the direct cause of the following exception:
  248. Traceback (most recent call last):
  249. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  250. response = get_response(request)
  251. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  252. response = self.process_exception_by_middleware(e, request)
  253. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  254. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  255. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  256. return self.dispatch(request, *args, **kwargs)
  257. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  258. return handler(request, *args, **kwargs)
  259. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  260. return func(*args, **kwds)
  261. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 297, in delete
  262. cursor.execute("""DELETE FROM MF_BAC WHERE BB_NO=%s AND RP_ID='2'""", ['BT'+RP_NO[2::]])
  263. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  264. return super().execute(sql, params)
  265. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  266. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  267. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  268. return executor(sql, params, many, context)
  269. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  270. return self.cursor.execute(sql, params)
  271. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  272. raise dj_exc_value.with_traceback(traceback) from exc_value
  273. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  274. return self.cursor.execute(sql, params)
  275. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  276. return self.cursor.execute(sql, params)
  277. django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  278. ERROR 2019-10-26 17:30:59,241 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 500 126111
  279. INFO 2019-10-26 17:33:53,187 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  280. WARNING 2019-10-26 17:34:25,873 log 228 Forbidden: /paymentoperation/
  281. WARNING 2019-10-26 17:34:25,874 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 36
  282. WARNING 2019-10-26 17:34:33,716 log 228 Forbidden: /paymentoperation/
  283. WARNING 2019-10-26 17:34:33,716 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15
  284. INFO 2019-10-26 17:39:32,014 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  285. INFO 2019-10-26 17:39:50,505 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36
  286. INFO 2019-10-26 17:40:11,226 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  287. INFO 2019-10-26 17:48:51,576 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  288. INFO 2019-10-26 17:49:04,517 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  289. INFO 2019-10-26 17:49:13,853 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  290. INFO 2019-10-26 17:49:17,183 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  291. WARNING 2019-10-26 17:49:39,792 log 228 Forbidden: /paymentoperation/
  292. WARNING 2019-10-26 17:49:39,792 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15
  293. INFO 2019-10-26 18:28:14,669 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  294. INFO 2019-10-26 18:28:18,274 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  295. INFO 2019-10-26 18:28:21,150 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  296. WARNING 2019-10-26 18:28:25,458 log 228 Forbidden: /paymentoperation/
  297. WARNING 2019-10-26 18:28:25,458 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21
  298. INFO 2019-10-26 18:30:04,306 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  299. INFO 2019-10-26 18:30:19,015 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36
  300. WARNING 2019-10-26 18:30:28,836 log 228 Forbidden: /paymentoperation/
  301. WARNING 2019-10-26 18:30:28,837 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21
  302. INFO 2019-10-26 18:30:38,718 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  303. INFO 2019-10-26 18:31:02,819 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  304. INFO 2019-10-26 18:35:00,176 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  305. INFO 2019-10-26 18:35:06,199 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  306. INFO 2019-10-26 18:35:09,065 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  307. INFO 2019-10-26 18:35:32,737 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  308. INFO 2019-10-26 18:35:38,682 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36
  309. INFO 2019-10-26 18:35:48,661 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  310. INFO 2019-10-26 18:35:55,766 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  311. INFO 2019-10-28 09:04:08,436 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  312. WARNING 2019-10-28 09:05:08,930 log 228 Forbidden: /expectedpoperation/
  313. WARNING 2019-10-28 09:05:08,930 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 403 15
  314. INFO 2019-10-28 09:05:19,111 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42
  315. INFO 2019-10-28 09:14:12,133 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42
  316. INFO 2019-10-28 09:23:44,854 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42
  317. INFO 2019-10-28 09:24:13,707 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42
  318. WARNING 2019-10-28 09:24:58,993 log 228 Forbidden: /expectedpoperation/
  319. WARNING 2019-10-28 09:24:58,993 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 403 27
  320. WARNING 2019-10-28 09:28:41,541 log 228 Forbidden: /expectedpoperation/
  321. WARNING 2019-10-28 09:28:41,542 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 15
  322. WARNING 2019-10-28 09:29:03,803 log 228 Forbidden: /expectedpoperation/
  323. WARNING 2019-10-28 09:29:03,803 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 15
  324. INFO 2019-10-28 09:30:24,164 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 200 45
  325. WARNING 2019-10-28 09:34:09,682 log 228 Forbidden: /expectedpoperation/
  326. WARNING 2019-10-28 09:34:09,682 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 27
  327. INFO 2019-10-28 09:34:29,286 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  328. INFO 2019-10-28 09:34:49,859 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42
  329. WARNING 2019-10-28 09:35:20,642 log 228 Forbidden: /expectedpoperation/
  330. WARNING 2019-10-28 09:35:20,643 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 33
  331. WARNING 2019-10-28 09:35:37,100 log 228 Forbidden: /expectedpoperation/
  332. WARNING 2019-10-28 09:35:37,101 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 33
  333. INFO 2019-10-28 09:39:00,461 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 200 45
  334. INFO 2019-10-28 09:39:06,134 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  335. INFO 2019-10-28 09:39:09,613 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36
  336. INFO 2019-10-28 09:39:34,619 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36
  337. INFO 2019-10-28 09:39:56,474 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  338. INFO 2019-10-28 09:40:00,198 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42
  339. WARNING 2019-10-28 09:40:35,489 log 228 Forbidden: /expectedpoperation/
  340. WARNING 2019-10-28 09:40:35,490 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 33
  341. INFO 2019-10-28 09:40:42,079 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 200 45
  342. WARNING 2019-10-28 13:20:21,682 log 228 Forbidden: /expectedpoperation/
  343. WARNING 2019-10-28 13:20:21,682 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 24
  344. INFO 2019-10-28 13:20:26,561 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  345. WARNING 2019-10-28 13:20:30,181 log 228 Forbidden: /invoice/
  346. WARNING 2019-10-28 13:20:30,182 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 48
  347. WARNING 2019-10-28 13:20:47,121 log 228 Forbidden: /paymentoperation/
  348. WARNING 2019-10-28 13:20:47,122 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15
  349. INFO 2019-10-28 13:20:55,254 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  350. INFO 2019-10-28 13:20:58,635 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  351. INFO 2019-10-28 13:21:04,731 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  352. INFO 2019-10-28 13:27:56,959 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  353. WARNING 2019-10-28 13:27:58,680 log 228 Forbidden: /expectedpoperation/
  354. WARNING 2019-10-28 13:27:58,680 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24
  355. INFO 2019-10-28 13:28:21,935 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42
  356. INFO 2019-10-28 13:34:02,390 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  357. INFO 2019-10-28 13:35:23,918 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 200 55
  358. INFO 2019-10-28 15:36:48,198 basehttp 154 "PUT /expectedptoperation/ HTTP/1.1" 200 54
  359. INFO 2019-10-28 15:41:44,910 basehttp 154 "DELETE /expectedptoperation/ HTTP/1.1" 200 57
  360. WARNING 2019-10-28 15:41:47,353 log 228 Forbidden: /expectedptoperation/
  361. WARNING 2019-10-28 15:41:47,353 basehttp 154 "DELETE /expectedptoperation/ HTTP/1.1" 403 15
  362. ERROR 2019-10-28 17:13:21,613 log 228 Internal Server Error: /invoice/
  363. Traceback (most recent call last):
  364. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner
  365. return func(*args, **kwargs)
  366. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall
  367. return self.format_rows(self.cursor.fetchall())
  368. pyodbc.ProgrammingError: No results. Previous SQL was not a query.
  369. The above exception was the direct cause of the following exception:
  370. Traceback (most recent call last):
  371. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  372. response = get_response(request)
  373. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  374. response = self.process_exception_by_middleware(e, request)
  375. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  376. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  377. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  378. return self.dispatch(request, *args, **kwargs)
  379. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  380. return handler(request, *args, **kwargs)
  381. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 25, in get
  382. row = cursor.fetchall()
  383. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner
  384. return func(*args, **kwargs)
  385. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  386. raise dj_exc_value.with_traceback(traceback) from exc_value
  387. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner
  388. return func(*args, **kwargs)
  389. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall
  390. return self.format_rows(self.cursor.fetchall())
  391. django.db.utils.ProgrammingError: No results. Previous SQL was not a query.
  392. ERROR 2019-10-28 17:13:21,617 basehttp 154 "GET /invoice/ HTTP/1.1" 500 103126
  393. ERROR 2019-10-28 17:14:09,053 log 228 Internal Server Error: /invoice/
  394. Traceback (most recent call last):
  395. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner
  396. return func(*args, **kwargs)
  397. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall
  398. return self.format_rows(self.cursor.fetchall())
  399. pyodbc.ProgrammingError: No results. Previous SQL was not a query.
  400. The above exception was the direct cause of the following exception:
  401. Traceback (most recent call last):
  402. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  403. response = get_response(request)
  404. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  405. response = self.process_exception_by_middleware(e, request)
  406. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  407. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  408. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  409. return self.dispatch(request, *args, **kwargs)
  410. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  411. return handler(request, *args, **kwargs)
  412. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 26, in get
  413. row = cursor.fetchall()
  414. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner
  415. return func(*args, **kwargs)
  416. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  417. raise dj_exc_value.with_traceback(traceback) from exc_value
  418. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner
  419. return func(*args, **kwargs)
  420. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall
  421. return self.format_rows(self.cursor.fetchall())
  422. django.db.utils.ProgrammingError: No results. Previous SQL was not a query.
  423. ERROR 2019-10-28 17:14:09,055 basehttp 154 "GET /invoice/ HTTP/1.1" 500 103121
  424. INFO 2019-10-28 17:14:37,315 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  425. INFO 2019-10-28 17:18:40,853 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  426. INFO 2019-10-28 17:46:37,114 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  427. INFO 2019-10-28 17:47:59,023 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  428. INFO 2019-10-28 17:48:24,002 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  429. INFO 2019-10-29 17:17:19,858 basehttp 154 "GET /sales HTTP/1.1" 301 0
  430. INFO 2019-10-29 17:17:19,893 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  431. WARNING 2019-10-29 17:17:19,955 log 228 Not Found: /favicon.ico
  432. WARNING 2019-10-29 17:17:19,956 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 2790
  433. INFO 2019-10-30 08:53:29,962 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  434. WARNING 2019-10-30 09:01:13,540 log 228 Forbidden: /sales/
  435. WARNING 2019-10-30 09:01:13,540 basehttp 154 "POST /sales/ HTTP/1.1" 403 51
  436. ERROR 2019-10-30 09:01:22,412 log 228 Internal Server Error: /sales/
  437. Traceback (most recent call last):
  438. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  439. response = get_response(request)
  440. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  441. response = self.process_exception_by_middleware(e, request)
  442. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  443. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  444. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  445. return self.dispatch(request, *args, **kwargs)
  446. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  447. return handler(request, *args, **kwargs)
  448. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  449. return func(*args, **kwds)
  450. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 82, in post
  451. INV_NO,datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'),datetime.datetime.strptime(LZ_DD, '%Y-%m-%d')])
  452. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  453. return super().execute(sql, params)
  454. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  455. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  456. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  457. return executor(sql, params, many, context)
  458. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  459. return self.cursor.execute(sql, params)
  460. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 542, in execute
  461. sql = self.format_sql(sql, params)
  462. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 510, in format_sql
  463. sql = sql % tuple('?' * len(params))
  464. TypeError: not all arguments converted during string formatting
  465. ERROR 2019-10-30 09:01:22,414 basehttp 154 "POST /sales/ HTTP/1.1" 500 117057
  466. ERROR 2019-10-30 09:06:26,281 log 228 Internal Server Error: /sales/
  467. Traceback (most recent call last):
  468. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  469. response = get_response(request)
  470. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 137, in _get_response
  471. "returned None instead." % (callback.__module__, view_name)
  472. ValueError: The view salesinvoice.views.salesView didn't return an HttpResponse object. It returned None instead.
  473. ERROR 2019-10-30 09:06:26,284 basehttp 154 "POST /sales/ HTTP/1.1" 500 61515
  474. ERROR 2019-10-30 09:08:20,019 log 228 Internal Server Error: /sales/
  475. Traceback (most recent call last):
  476. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  477. return self.cursor.execute(sql, params)
  478. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  479. return self.cursor.execute(sql, params)
  480. pyodbc.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)")
  481. The above exception was the direct cause of the following exception:
  482. Traceback (most recent call last):
  483. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  484. response = get_response(request)
  485. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  486. response = self.process_exception_by_middleware(e, request)
  487. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  488. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  489. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  490. return self.dispatch(request, *args, **kwargs)
  491. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  492. return handler(request, *args, **kwargs)
  493. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  494. return func(*args, **kwds)
  495. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 71, in post
  496. datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'),AMT])
  497. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  498. return super().execute(sql, params)
  499. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  500. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  501. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  502. return executor(sql, params, many, context)
  503. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  504. return self.cursor.execute(sql, params)
  505. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  506. raise dj_exc_value.with_traceback(traceback) from exc_value
  507. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  508. return self.cursor.execute(sql, params)
  509. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  510. return self.cursor.execute(sql, params)
  511. django.db.utils.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)")
  512. ERROR 2019-10-30 09:08:20,023 basehttp 154 "POST /sales/ HTTP/1.1" 500 133988
  513. WARNING 2019-10-30 09:09:07,909 log 228 Forbidden: /sales/
  514. WARNING 2019-10-30 09:09:07,909 basehttp 154 "POST /sales/ HTTP/1.1" 403 27
  515. INFO 2019-10-30 09:10:51,862 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  516. INFO 2019-10-30 09:34:16,513 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  517. ERROR 2019-10-30 09:40:09,694 log 228 Internal Server Error: /sales/
  518. Traceback (most recent call last):
  519. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  520. return self.cursor.execute(sql, params)
  521. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  522. return self.cursor.execute(sql, params)
  523. pyodbc.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__TF_LZ'。不能在对象 'dbo.TF_LZ' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)")
  524. The above exception was the direct cause of the following exception:
  525. Traceback (most recent call last):
  526. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  527. response = get_response(request)
  528. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  529. response = self.process_exception_by_middleware(e, request)
  530. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  531. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  532. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  533. return self.dispatch(request, *args, **kwargs)
  534. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  535. return handler(request, *args, **kwargs)
  536. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  537. return func(*args, **kwds)
  538. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 90, in post
  539. ('LZ',%s,1,%s,%s,%s,'AQ001',1,%s,5,1,1,'SA',1,'服務費用',%s,1,1)""",[ZL_NO, 'SA' + ZL_NO[2::],AMT,AMT,datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'), CUS_NO])
  540. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  541. return super().execute(sql, params)
  542. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  543. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  544. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  545. return executor(sql, params, many, context)
  546. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  547. return self.cursor.execute(sql, params)
  548. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  549. raise dj_exc_value.with_traceback(traceback) from exc_value
  550. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  551. return self.cursor.execute(sql, params)
  552. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  553. return self.cursor.execute(sql, params)
  554. django.db.utils.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__TF_LZ'。不能在对象 'dbo.TF_LZ' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)")
  555. ERROR 2019-10-30 09:40:09,698 basehttp 154 "POST /sales/ HTTP/1.1" 500 133487
  556. INFO 2019-10-30 09:40:39,938 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  557. INFO 2019-10-30 09:41:21,053 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  558. INFO 2019-10-30 09:45:39,565 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  559. INFO 2019-10-30 09:56:47,597 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  560. INFO 2019-10-30 09:58:19,521 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  561. INFO 2019-10-30 10:01:37,714 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  562. WARNING 2019-10-30 10:15:39,303 log 228 Forbidden: /sales/
  563. WARNING 2019-10-30 10:15:39,303 basehttp 154 "PUT /sales/ HTTP/1.1" 403 51
  564. INFO 2019-10-30 10:15:47,263 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60
  565. ERROR 2019-10-30 10:26:49,687 log 228 Internal Server Error: /invoice/
  566. Traceback (most recent call last):
  567. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  568. response = get_response(request)
  569. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  570. response = self.process_exception_by_middleware(e, request)
  571. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  572. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  573. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  574. return self.dispatch(request, *args, **kwargs)
  575. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  576. return handler(request, *args, **kwargs)
  577. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  578. return func(*args, **kwds)
  579. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 335, in delete
  580. req_data = json.loads(request.body.decode())
  581. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  582. return _default_decoder.decode(s)
  583. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  584. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  585. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  586. raise JSONDecodeError("Expecting value", s, err.value) from None
  587. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  588. ERROR 2019-10-30 10:26:49,691 basehttp 154 "DELETE /invoice/?ZL_NO=LZS9A300001&ZHANG_ID=3 HTTP/1.1" 500 97827
  589. WARNING 2019-10-30 10:28:36,918 base 93 Method Not Allowed (DELETE): /sales/
  590. WARNING 2019-10-30 10:28:36,918 log 228 Method Not Allowed: /sales/
  591. WARNING 2019-10-30 10:28:36,918 basehttp 154 "DELETE /sales/ HTTP/1.1" 405 0
  592. WARNING 2019-10-30 10:29:14,406 log 228 Forbidden: /sales/
  593. WARNING 2019-10-30 10:29:14,406 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21
  594. INFO 2019-10-30 10:30:23,997 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 60
  595. INFO 2019-10-30 10:30:57,516 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 60
  596. WARNING 2019-10-30 10:31:36,845 log 228 Forbidden: /sales/
  597. WARNING 2019-10-30 10:31:36,846 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21
  598. WARNING 2019-10-30 10:31:41,341 log 228 Forbidden: /sales/
  599. WARNING 2019-10-30 10:31:41,341 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21
  600. ERROR 2019-10-30 10:32:19,311 log 228 Internal Server Error: /sales/
  601. Traceback (most recent call last):
  602. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  603. return self.cursor.execute(sql, params)
  604. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  605. return self.cursor.execute(sql, params)
  606. pyodbc.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)")
  607. The above exception was the direct cause of the following exception:
  608. Traceback (most recent call last):
  609. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  610. response = get_response(request)
  611. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  612. response = self.process_exception_by_middleware(e, request)
  613. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  614. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  615. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  616. return self.dispatch(request, *args, **kwargs)
  617. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  618. return handler(request, *args, **kwargs)
  619. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  620. return func(*args, **kwds)
  621. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 75, in post
  622. datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'),AMT])
  623. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  624. return super().execute(sql, params)
  625. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  626. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  627. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  628. return executor(sql, params, many, context)
  629. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  630. return self.cursor.execute(sql, params)
  631. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  632. raise dj_exc_value.with_traceback(traceback) from exc_value
  633. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  634. return self.cursor.execute(sql, params)
  635. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  636. return self.cursor.execute(sql, params)
  637. django.db.utils.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)")
  638. ERROR 2019-10-30 10:32:19,313 basehttp 154 "POST /sales/ HTTP/1.1" 500 133997
  639. INFO 2019-10-30 10:33:03,845 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  640. INFO 2019-10-30 10:33:20,400 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60
  641. INFO 2019-10-30 10:33:29,120 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  642. INFO 2019-10-30 10:34:34,157 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  643. INFO 2019-10-30 10:34:36,603 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60
  644. INFO 2019-10-30 10:34:39,263 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  645. INFO 2019-10-30 10:34:41,980 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  646. INFO 2019-10-30 10:56:56,320 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  647. WARNING 2019-10-30 10:56:58,661 log 228 Forbidden: /sales/
  648. WARNING 2019-10-30 10:56:58,662 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21
  649. INFO 2019-10-30 10:57:02,371 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  650. INFO 2019-10-30 10:57:05,316 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60
  651. INFO 2019-10-30 10:57:08,645 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  652. WARNING 2019-10-30 10:57:09,693 log 228 Forbidden: /sales/
  653. WARNING 2019-10-30 10:57:09,693 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21
  654. INFO 2019-10-30 11:02:59,771 basehttp 154 "GET /proceeds HTTP/1.1" 301 0
  655. INFO 2019-10-30 11:02:59,783 basehttp 154 "GET /proceeds/ HTTP/1.1" 200 48
  656. WARNING 2019-10-30 11:36:24,589 log 228 Forbidden: /invoice/
  657. WARNING 2019-10-30 11:36:24,590 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  658. INFO 2019-10-30 11:37:26,909 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  659. ERROR 2019-10-30 11:46:51,278 log 228 Internal Server Error: /proceeds
  660. Traceback (most recent call last):
  661. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  662. response = get_response(request)
  663. File "C:\Users\12446\Envs\awj\lib\site-packages\django\utils\deprecation.py", line 90, in __call__
  664. response = self.process_request(request)
  665. File "C:\Users\12446\Envs\awj\lib\site-packages\django\middleware\common.py", line 53, in process_request
  666. path = self.get_full_path_with_slash(request)
  667. File "C:\Users\12446\Envs\awj\lib\site-packages\django\middleware\common.py", line 93, in get_full_path_with_slash
  668. 'url': request.get_host() + new_path,
  669. RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8000/proceeds/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
  670. ERROR 2019-10-30 11:46:51,279 basehttp 154 "POST /proceeds HTTP/1.1" 500 68450
  671. ERROR 2019-10-30 11:47:31,389 log 228 Internal Server Error: /proceeds/
  672. Traceback (most recent call last):
  673. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  674. response = get_response(request)
  675. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  676. response = self.process_exception_by_middleware(e, request)
  677. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  678. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  679. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  680. return self.dispatch(request, *args, **kwargs)
  681. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  682. return handler(request, *args, **kwargs)
  683. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  684. return func(*args, **kwds)
  685. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 341, in post
  686. row_AMT = cursor.execute("SELECT CAST(ISNULL(AMT,0) AS INT ),BIL_NO FROM MF_ARP WHERE BIL_NO=%s",[MF_LZ1]).fetchall()[0][0]
  687. IndexError: list index out of range
  688. ERROR 2019-10-30 11:47:31,391 basehttp 154 "POST /proceeds/ HTTP/1.1" 500 85496
  689. INFO 2019-10-30 13:22:08,693 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  690. INFO 2019-10-30 13:42:52,852 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  691. INFO 2019-10-30 13:48:15,671 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  692. INFO 2019-10-30 13:51:34,234 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  693. INFO 2019-10-30 13:54:59,562 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  694. INFO 2019-10-30 13:58:43,435 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  695. INFO 2019-10-30 14:28:41,733 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  696. INFO 2019-10-30 14:30:16,253 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  697. INFO 2019-10-30 14:30:17,254 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  698. WARNING 2019-10-30 14:33:00,957 log 228 Forbidden: /proceeds/
  699. WARNING 2019-10-30 14:33:00,958 basehttp 154 "PUT /proceeds/ HTTP/1.1" 403 21
  700. INFO 2019-10-30 14:33:29,952 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  701. ERROR 2019-10-30 14:44:53,711 log 228 Internal Server Error: /proceeds/
  702. Traceback (most recent call last):
  703. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  704. response = get_response(request)
  705. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  706. response = self.process_exception_by_middleware(e, request)
  707. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  708. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  709. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  710. return self.dispatch(request, *args, **kwargs)
  711. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  712. return handler(request, *args, **kwargs)
  713. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  714. return func(*args, **kwds)
  715. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 453, in delete
  716. row_AMTN_MF_ARP = cursor.execute("""SELECT AMTN FROM MF_ARP WHERE BIL_NO=%s""", [MF_LZ1]).fetchall()[0][0]
  717. IndexError: list index out of range
  718. ERROR 2019-10-30 14:44:53,712 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 500 83376
  719. ERROR 2019-10-30 14:45:59,949 log 228 Internal Server Error: /proceeds/
  720. Traceback (most recent call last):
  721. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  722. response = get_response(request)
  723. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  724. response = self.process_exception_by_middleware(e, request)
  725. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  726. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  727. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  728. return self.dispatch(request, *args, **kwargs)
  729. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  730. return handler(request, *args, **kwargs)
  731. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  732. return func(*args, **kwds)
  733. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 453, in delete
  734. row_AMTN_MF_ARP = cursor.execute("""SELECT AMTN FROM MF_ARP WHERE BIL_NO=%s""", [MF_LZ1]).fetchall()[0][0]
  735. IndexError: list index out of range
  736. ERROR 2019-10-30 14:45:59,951 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 500 83376
  737. INFO 2019-10-30 14:47:40,695 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51
  738. INFO 2019-10-30 14:48:14,594 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  739. INFO 2019-10-30 14:48:20,519 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  740. INFO 2019-10-30 14:48:27,205 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  741. INFO 2019-10-30 14:49:02,467 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  742. INFO 2019-10-30 14:49:05,827 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51
  743. INFO 2019-10-30 14:51:28,576 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  744. INFO 2019-10-30 14:51:31,576 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  745. INFO 2019-10-30 14:51:33,701 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  746. INFO 2019-10-30 14:51:37,598 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  747. INFO 2019-10-30 14:56:00,429 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51
  748. WARNING 2019-10-30 15:01:11,277 log 228 Forbidden: /proceeds/
  749. WARNING 2019-10-30 15:01:11,277 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 403 21
  750. INFO 2019-10-30 15:01:14,914 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  751. INFO 2019-10-30 15:01:18,717 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  752. INFO 2019-10-30 15:01:23,694 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  753. INFO 2019-10-30 15:01:27,030 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  754. INFO 2019-10-30 15:01:32,025 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51
  755. INFO 2019-10-30 16:11:57,129 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  756. INFO 2019-10-30 18:00:39,949 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60
  757. ERROR 2019-10-30 18:08:10,643 log 228 Internal Server Error: /predictproceeds/
  758. Traceback (most recent call last):
  759. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  760. return self.cursor.execute(sql, params)
  761. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  762. return self.cursor.execute(sql, params)
  763. pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  764. The above exception was the direct cause of the following exception:
  765. Traceback (most recent call last):
  766. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  767. response = get_response(request)
  768. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  769. response = self.process_exception_by_middleware(e, request)
  770. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  771. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  772. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  773. return self.dispatch(request, *args, **kwargs)
  774. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  775. return handler(request, *args, **kwargs)
  776. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  777. return func(*args, **kwds)
  778. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 626, in delete
  779. cursor.execute("""DELETE FROM MF_BAC WHERE BB_NO=%s AND RP_ID='2'""", ['BT' + RP_NO[2::]])
  780. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  781. return super().execute(sql, params)
  782. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  783. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  784. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  785. return executor(sql, params, many, context)
  786. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  787. return self.cursor.execute(sql, params)
  788. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  789. raise dj_exc_value.with_traceback(traceback) from exc_value
  790. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  791. return self.cursor.execute(sql, params)
  792. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  793. return self.cursor.execute(sql, params)
  794. django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  795. ERROR 2019-10-30 18:08:10,646 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 500 125242
  796. ERROR 2019-10-30 18:08:34,925 log 228 Internal Server Error: /predictproceeds/
  797. Traceback (most recent call last):
  798. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  799. return self.cursor.execute(sql, params)
  800. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  801. return self.cursor.execute(sql, params)
  802. pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  803. The above exception was the direct cause of the following exception:
  804. Traceback (most recent call last):
  805. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  806. response = get_response(request)
  807. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  808. response = self.process_exception_by_middleware(e, request)
  809. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  810. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  811. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  812. return self.dispatch(request, *args, **kwargs)
  813. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  814. return handler(request, *args, **kwargs)
  815. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  816. return func(*args, **kwds)
  817. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 626, in delete
  818. cursor.execute("""DELETE FROM MF_BAC WHERE BB_NO=%s AND RP_ID='2'""", ['BT' + RP_NO[2::]])
  819. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  820. return super().execute(sql, params)
  821. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  822. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  823. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  824. return executor(sql, params, many, context)
  825. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  826. return self.cursor.execute(sql, params)
  827. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  828. raise dj_exc_value.with_traceback(traceback) from exc_value
  829. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  830. return self.cursor.execute(sql, params)
  831. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  832. return self.cursor.execute(sql, params)
  833. django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  834. ERROR 2019-10-30 18:08:34,928 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 500 125223
  835. INFO 2019-10-30 18:09:15,961 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  836. INFO 2019-10-30 18:17:25,623 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63
  837. INFO 2019-10-30 18:21:25,330 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  838. INFO 2019-10-30 18:21:37,718 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60
  839. INFO 2019-10-30 18:21:49,575 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63
  840. INFO 2019-10-30 18:46:52,323 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  841. INFO 2019-10-30 18:49:24,957 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  842. INFO 2019-10-30 18:52:07,282 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  843. INFO 2019-10-30 18:54:11,644 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  844. INFO 2019-10-30 18:54:19,095 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  845. INFO 2019-10-30 18:55:30,664 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  846. INFO 2019-10-30 18:56:07,419 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  847. INFO 2019-10-30 18:56:39,652 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  848. WARNING 2019-10-30 18:56:57,110 log 228 Forbidden: /predictproceeds/
  849. WARNING 2019-10-30 18:56:57,110 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21
  850. INFO 2019-10-30 18:57:26,353 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  851. INFO 2019-10-30 18:57:44,762 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  852. INFO 2019-10-30 18:58:17,613 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  853. INFO 2019-10-30 18:58:46,677 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  854. WARNING 2019-10-30 18:59:32,970 log 228 Forbidden: /predictproceeds/
  855. WARNING 2019-10-30 18:59:32,971 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21
  856. ERROR 2019-10-30 19:03:56,102 log 228 Internal Server Error: /predictproceeds/
  857. Traceback (most recent call last):
  858. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  859. response = get_response(request)
  860. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 19, in inner
  861. print(name)
  862. NameError: name 'name' is not defined
  863. ERROR 2019-10-30 19:03:56,103 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 500 58158
  864. INFO 2019-10-30 19:04:16,724 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  865. WARNING 2019-10-30 19:04:51,537 log 228 Forbidden: /predictproceeds/
  866. WARNING 2019-10-30 19:04:51,537 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21
  867. WARNING 2019-10-30 19:05:54,675 log 228 Forbidden: /predictproceeds/
  868. WARNING 2019-10-30 19:05:54,676 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21
  869. WARNING 2019-10-31 11:07:56,865 log 228 Forbidden: /predictproceeds/
  870. WARNING 2019-10-31 11:07:56,866 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21
  871. INFO 2019-10-31 11:08:37,578 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  872. INFO 2019-10-31 11:29:48,607 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  873. INFO 2019-10-31 11:34:16,468 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  874. INFO 2019-10-31 11:34:38,641 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  875. ERROR 2019-10-31 11:36:32,992 log 228 Internal Server Error: /predictproceeds/
  876. Traceback (most recent call last):
  877. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  878. response = get_response(request)
  879. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  880. response = self.process_exception_by_middleware(e, request)
  881. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  882. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  883. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  884. return self.dispatch(request, *args, **kwargs)
  885. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  886. return handler(request, *args, **kwargs)
  887. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  888. return func(*args, **kwds)
  889. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 512, in post
  890. row_usr = usr_data(USR, USR_NAME, datetime.datetime.strptime(RP_DD, '%Y-%m-%d'))
  891. TypeError: strptime() argument 1 must be str, not None
  892. ERROR 2019-10-31 11:36:32,995 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 83363
  893. ERROR 2019-10-31 11:39:07,545 log 228 Internal Server Error: /predictpayment/
  894. Traceback (most recent call last):
  895. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  896. response = get_response(request)
  897. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  898. response = self.process_exception_by_middleware(e, request)
  899. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  900. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  901. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  902. return self.dispatch(request, *args, **kwargs)
  903. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  904. return handler(request, *args, **kwargs)
  905. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  906. return func(*args, **kwds)
  907. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 702, in post
  908. yf_sum =round(yf_sum + cursor.execute("""SELECT AMTN FROM MF_ARP WHERE BIL_NO=%s""", [i["DH"]]).fetchall()[0][0], 4)
  909. IndexError: list index out of range
  910. ERROR 2019-10-31 11:39:07,548 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 84378
  911. INFO 2019-10-31 13:14:18,613 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55
  912. ERROR 2019-10-31 13:19:29,067 log 228 Internal Server Error: /sales/
  913. Traceback (most recent call last):
  914. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  915. response = get_response(request)
  916. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  917. response = self.process_exception_by_middleware(e, request)
  918. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  919. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  920. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  921. return self.dispatch(request, *args, **kwargs)
  922. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  923. return handler(request, *args, **kwargs)
  924. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  925. return func(*args, **kwds)
  926. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 225, in delete
  927. if int(ZHANG_ID) != 1 and int(ZHANG_ID) != 2:
  928. TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
  929. ERROR 2019-10-31 13:19:29,069 basehttp 154 "DELETE /sales/ HTTP/1.1" 500 82324
  930. WARNING 2019-10-31 13:21:26,048 log 228 Forbidden: /sales/
  931. WARNING 2019-10-31 13:21:26,049 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21
  932. ERROR 2019-10-31 13:21:45,155 log 228 Internal Server Error: /sales/
  933. Traceback (most recent call last):
  934. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  935. response = get_response(request)
  936. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  937. response = self.process_exception_by_middleware(e, request)
  938. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  939. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  940. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  941. return self.dispatch(request, *args, **kwargs)
  942. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  943. return handler(request, *args, **kwargs)
  944. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  945. return func(*args, **kwds)
  946. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 230, in delete
  947. row_TC_MON = examine_ood('TC_MON', 'RP_NO', 'AR' + ZL_NO[2::], 'RP_ID', '1')
  948. TypeError: 'NoneType' object is not subscriptable
  949. ERROR 2019-10-31 13:21:45,157 basehttp 154 "DELETE /sales/ HTTP/1.1" 500 82315
  950. INFO 2019-10-31 13:24:53,745 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  951. INFO 2019-10-31 13:25:03,975 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  952. INFO 2019-10-31 13:25:22,981 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55
  953. INFO 2019-10-31 13:26:44,203 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55
  954. WARNING 2019-10-31 13:40:15,886 log 228 Forbidden: /predictpayment/
  955. WARNING 2019-10-31 13:40:15,888 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 18
  956. INFO 2019-10-31 13:40:40,334 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54
  957. ERROR 2019-10-31 13:54:42,877 log 228 Internal Server Error: /predictpayment/
  958. Traceback (most recent call last):
  959. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  960. return self.cursor.execute(sql, params)
  961. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  962. return self.cursor.execute(sql, params)
  963. pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'RP_ID' 附近有语法错误。 (102) (SQLExecDirectW); [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  964. The above exception was the direct cause of the following exception:
  965. Traceback (most recent call last):
  966. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  967. response = get_response(request)
  968. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  969. response = self.process_exception_by_middleware(e, request)
  970. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  971. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  972. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  973. return self.dispatch(request, *args, **kwargs)
  974. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  975. return handler(request, *args, **kwargs)
  976. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  977. return func(*args, **kwds)
  978. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 891, in delete
  979. cursor.execute("""DELETE FROM TF_MON1 WHERE RP_NO=%s RP_ID='1'""", [RP_NO])
  980. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  981. return super().execute(sql, params)
  982. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  983. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  984. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  985. return executor(sql, params, many, context)
  986. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  987. return self.cursor.execute(sql, params)
  988. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  989. raise dj_exc_value.with_traceback(traceback) from exc_value
  990. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  991. return self.cursor.execute(sql, params)
  992. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  993. return self.cursor.execute(sql, params)
  994. django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'RP_ID' 附近有语法错误。 (102) (SQLExecDirectW); [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  995. ERROR 2019-10-31 13:54:42,882 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 500 127177
  996. INFO 2019-10-31 13:58:39,440 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 200 57
  997. INFO 2019-10-31 13:59:16,898 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55
  998. INFO 2019-10-31 13:59:30,475 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54
  999. INFO 2019-10-31 13:59:47,133 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 200 57
  1000. WARNING 2019-11-01 13:19:01,710 log 228 Forbidden: /sales/
  1001. WARNING 2019-11-01 13:19:01,815 basehttp 154 "POST /sales/ HTTP/1.1" 403 77
  1002. INFO 2019-11-01 13:19:18,508 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  1003. WARNING 2019-11-01 13:20:50,209 log 228 Forbidden: /sales/
  1004. WARNING 2019-11-01 13:20:50,209 basehttp 154 "POST /sales/ HTTP/1.1" 403 27
  1005. WARNING 2019-11-01 13:21:24,074 log 228 Forbidden: /sales/
  1006. WARNING 2019-11-01 13:21:24,074 basehttp 154 "POST /sales/ HTTP/1.1" 403 27
  1007. WARNING 2019-11-01 13:22:01,120 log 228 Forbidden: /sales/
  1008. WARNING 2019-11-01 13:22:01,121 basehttp 154 "POST /sales/ HTTP/1.1" 403 77
  1009. WARNING 2019-11-01 13:23:02,571 log 228 Forbidden: /sales/
  1010. WARNING 2019-11-01 13:23:02,571 basehttp 154 "POST /sales/ HTTP/1.1" 403 21
  1011. WARNING 2019-11-01 13:23:15,243 log 228 Forbidden: /sales/
  1012. WARNING 2019-11-01 13:23:15,243 basehttp 154 "POST /sales/ HTTP/1.1" 403 27
  1013. INFO 2019-11-01 13:23:27,865 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  1014. WARNING 2019-11-01 13:31:04,968 log 228 Forbidden: /sales/
  1015. WARNING 2019-11-01 13:31:04,968 basehttp 154 "PUT /sales/ HTTP/1.1" 403 45
  1016. INFO 2019-11-01 13:32:14,626 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60
  1017. ERROR 2019-11-01 13:33:57,082 log 228 Internal Server Error: /sales/
  1018. Traceback (most recent call last):
  1019. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1020. response = get_response(request)
  1021. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  1022. response = self.process_exception_by_middleware(e, request)
  1023. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  1024. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1025. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  1026. return self.dispatch(request, *args, **kwargs)
  1027. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  1028. return handler(request, *args, **kwargs)
  1029. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1030. return func(*args, **kwds)
  1031. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 182, in put
  1032. if re.compile('(^-?[0-9](\d+)?(\.\d{1,6})?$)|(^0$)|(^\d\.\d{1,2}$)').match(AMT) is None:
  1033. TypeError: expected string or bytes-like object
  1034. ERROR 2019-11-01 13:33:57,084 basehttp 154 "PUT /sales/ HTTP/1.1" 500 85230
  1035. ERROR 2019-11-01 13:34:35,913 log 228 Internal Server Error: /sales/
  1036. Traceback (most recent call last):
  1037. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1038. response = get_response(request)
  1039. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  1040. response = self.process_exception_by_middleware(e, request)
  1041. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  1042. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1043. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  1044. return self.dispatch(request, *args, **kwargs)
  1045. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  1046. return handler(request, *args, **kwargs)
  1047. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1048. return func(*args, **kwds)
  1049. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 182, in put
  1050. if re.compile('(^-?[0-9](\d+)?(\.\d{1,6})?$)|(^0$)|(^\d\.\d{1,2}$)').match(AMT) is None:
  1051. TypeError: expected string or bytes-like object
  1052. ERROR 2019-11-01 13:34:35,971 basehttp 154 "PUT /sales/ HTTP/1.1" 500 85229
  1053. WARNING 2019-11-01 13:36:30,555 log 228 Forbidden: /sales/
  1054. WARNING 2019-11-01 13:36:30,556 basehttp 154 "PUT /sales/ HTTP/1.1" 403 51
  1055. WARNING 2019-11-01 13:36:54,761 log 228 Forbidden: /sales/
  1056. WARNING 2019-11-01 13:36:54,761 basehttp 154 "PUT /sales/ HTTP/1.1" 403 51
  1057. INFO 2019-11-01 13:43:51,173 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  1058. INFO 2019-11-01 13:49:22,907 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  1059. WARNING 2019-11-01 14:11:30,593 log 228 Forbidden: /proceeds/
  1060. WARNING 2019-11-01 14:11:30,594 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77
  1061. WARNING 2019-11-01 14:11:39,487 log 228 Forbidden: /proceeds/
  1062. WARNING 2019-11-01 14:11:39,488 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77
  1063. WARNING 2019-11-01 14:11:49,961 log 228 Forbidden: /proceeds/
  1064. WARNING 2019-11-01 14:11:49,962 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77
  1065. WARNING 2019-11-01 14:12:55,961 log 228 Forbidden: /proceeds/
  1066. WARNING 2019-11-01 14:12:55,962 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77
  1067. WARNING 2019-11-01 14:13:08,152 log 228 Forbidden: /proceeds/
  1068. WARNING 2019-11-01 14:13:08,153 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 21
  1069. INFO 2019-11-01 14:13:13,947 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  1070. ERROR 2019-11-01 14:25:21,711 log 228 Internal Server Error: /proceeds/
  1071. Traceback (most recent call last):
  1072. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1073. response = get_response(request)
  1074. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  1075. response = self.process_exception_by_middleware(e, request)
  1076. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  1077. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1078. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  1079. return self.dispatch(request, *args, **kwargs)
  1080. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  1081. return handler(request, *args, **kwargs)
  1082. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1083. return func(*args, **kwds)
  1084. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 403, in put
  1085. req_data = json.loads(request.body.decode())
  1086. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  1087. return _default_decoder.decode(s)
  1088. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  1089. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  1090. File "e:\12446\appdata\Lib\json\decoder.py", line 355, in raw_decode
  1091. obj, end = self.scan_once(s, idx)
  1092. json.decoder.JSONDecodeError: Expecting ',' delimiter: line 4 column 17 (char 73)
  1093. ERROR 2019-11-01 14:25:21,714 basehttp 154 "PUT /proceeds/ HTTP/1.1" 500 94811
  1094. WARNING 2019-11-01 14:26:31,795 log 228 Forbidden: /proceeds/
  1095. WARNING 2019-11-01 14:26:31,795 basehttp 154 "PUT /proceeds/ HTTP/1.1" 403 21
  1096. ERROR 2019-11-01 14:26:55,614 log 228 Internal Server Error: /proceeds/
  1097. Traceback (most recent call last):
  1098. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1099. response = get_response(request)
  1100. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  1101. response = self.process_exception_by_middleware(e, request)
  1102. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  1103. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1104. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  1105. return self.dispatch(request, *args, **kwargs)
  1106. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  1107. return handler(request, *args, **kwargs)
  1108. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1109. return func(*args, **kwds)
  1110. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 403, in put
  1111. req_data = json.loads(request.body.decode())
  1112. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  1113. return _default_decoder.decode(s)
  1114. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  1115. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  1116. File "e:\12446\appdata\Lib\json\decoder.py", line 355, in raw_decode
  1117. obj, end = self.scan_once(s, idx)
  1118. json.decoder.JSONDecodeError: Expecting ',' delimiter: line 4 column 17 (char 73)
  1119. ERROR 2019-11-01 14:26:55,616 basehttp 154 "PUT /proceeds/ HTTP/1.1" 500 94808
  1120. WARNING 2019-11-01 14:27:03,962 log 228 Forbidden: /proceeds/
  1121. WARNING 2019-11-01 14:27:03,963 basehttp 154 "PUT /proceeds/ HTTP/1.1" 403 21
  1122. INFO 2019-11-01 14:29:09,194 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  1123. INFO 2019-11-01 14:34:53,249 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51
  1124. WARNING 2019-11-01 14:49:17,092 log 228 Forbidden: /predictproceeds/
  1125. WARNING 2019-11-01 14:49:17,093 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81
  1126. WARNING 2019-11-01 14:49:24,441 log 228 Forbidden: /predictproceeds/
  1127. WARNING 2019-11-01 14:49:24,441 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81
  1128. WARNING 2019-11-01 14:49:58,609 log 228 Forbidden: /predictproceeds/
  1129. WARNING 2019-11-01 14:49:58,610 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81
  1130. WARNING 2019-11-01 14:50:23,437 log 228 Forbidden: /predictproceeds/
  1131. WARNING 2019-11-01 14:50:23,437 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81
  1132. WARNING 2019-11-01 14:50:40,875 log 228 Forbidden: /predictproceeds/
  1133. WARNING 2019-11-01 14:50:40,876 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 21
  1134. INFO 2019-11-01 14:51:20,192 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  1135. WARNING 2019-11-01 15:22:53,636 log 228 Forbidden: /predictproceeds/
  1136. WARNING 2019-11-01 15:22:53,636 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 403 81
  1137. WARNING 2019-11-01 15:23:04,357 log 228 Forbidden: /predictproceeds/
  1138. WARNING 2019-11-01 15:23:04,358 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 403 81
  1139. WARNING 2019-11-01 15:23:12,163 log 228 Forbidden: /predictproceeds/
  1140. WARNING 2019-11-01 15:23:12,164 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 403 21
  1141. INFO 2019-11-01 15:23:16,541 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60
  1142. INFO 2019-11-01 15:23:30,904 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60
  1143. INFO 2019-11-01 15:33:26,037 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63
  1144. INFO 2019-11-01 15:34:24,768 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  1145. INFO 2019-11-01 15:34:43,307 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63
  1146. INFO 2019-11-01 15:35:49,807 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  1147. WARNING 2019-11-01 16:04:28,431 log 228 Forbidden: /predictpayment/
  1148. WARNING 2019-11-01 16:04:28,432 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 81
  1149. WARNING 2019-11-01 16:23:08,201 log 228 Forbidden: /predictpayment/
  1150. WARNING 2019-11-01 16:23:08,202 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 78
  1151. WARNING 2019-11-01 16:23:54,853 log 228 Forbidden: /predictpayment/
  1152. WARNING 2019-11-01 16:23:54,854 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77
  1153. WARNING 2019-11-01 16:24:53,507 log 228 Forbidden: /predictpayment/
  1154. WARNING 2019-11-01 16:24:53,507 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 24
  1155. ERROR 2019-11-01 16:25:57,326 log 228 Internal Server Error: /predictpayment/
  1156. Traceback (most recent call last):
  1157. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1158. response = get_response(request)
  1159. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  1160. response = self.process_exception_by_middleware(e, request)
  1161. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  1162. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1163. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  1164. return self.dispatch(request, *args, **kwargs)
  1165. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  1166. return handler(request, *args, **kwargs)
  1167. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1168. return func(*args, **kwds)
  1169. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 760, in post
  1170. req_data = json.loads(request.body.decode())
  1171. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  1172. return _default_decoder.decode(s)
  1173. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  1174. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  1175. File "e:\12446\appdata\Lib\json\decoder.py", line 355, in raw_decode
  1176. obj, end = self.scan_once(s, idx)
  1177. json.decoder.JSONDecodeError: Expecting ',' delimiter: line 9 column 19 (char 200)
  1178. ERROR 2019-11-01 16:25:57,329 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 95999
  1179. WARNING 2019-11-01 16:26:14,247 log 228 Forbidden: /predictpayment/
  1180. WARNING 2019-11-01 16:26:14,247 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 24
  1181. WARNING 2019-11-01 16:27:08,761 log 228 Forbidden: /predictpayment/
  1182. WARNING 2019-11-01 16:27:08,761 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 24
  1183. ERROR 2019-11-01 16:27:36,380 log 228 Internal Server Error: /predictpayment/
  1184. Traceback (most recent call last):
  1185. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1186. response = get_response(request)
  1187. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  1188. response = self.process_exception_by_middleware(e, request)
  1189. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  1190. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1191. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  1192. return self.dispatch(request, *args, **kwargs)
  1193. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  1194. return handler(request, *args, **kwargs)
  1195. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1196. return func(*args, **kwds)
  1197. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 811, in post
  1198. sum_ATM = round(sum_ATM + i["ATM"], 4)
  1199. TypeError: unsupported operand type(s) for +: 'int' and 'str'
  1200. ERROR 2019-11-01 16:27:36,380 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 84315
  1201. WARNING 2019-11-01 16:28:56,052 log 228 Forbidden: /predictpayment/
  1202. WARNING 2019-11-01 16:28:56,052 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 21
  1203. WARNING 2019-11-01 16:29:36,517 log 228 Forbidden: /predictpayment/
  1204. WARNING 2019-11-01 16:29:36,517 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77
  1205. WARNING 2019-11-01 16:29:51,042 log 228 Forbidden: /predictpayment/
  1206. WARNING 2019-11-01 16:29:51,042 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77
  1207. INFO 2019-11-01 16:31:22,212 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  1208. WARNING 2019-11-01 16:31:48,381 log 228 Forbidden: /predictpayment/
  1209. WARNING 2019-11-01 16:31:48,381 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77
  1210. WARNING 2019-11-01 16:32:48,505 log 228 Forbidden: /predictpayment/
  1211. WARNING 2019-11-01 16:32:48,506 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77
  1212. WARNING 2019-11-01 16:33:19,688 log 228 Forbidden: /predictpayment/
  1213. WARNING 2019-11-01 16:33:19,688 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77
  1214. ERROR 2019-11-01 16:34:02,695 log 228 Internal Server Error: /predictpayment/
  1215. Traceback (most recent call last):
  1216. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1217. response = get_response(request)
  1218. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  1219. response = self.process_exception_by_middleware(e, request)
  1220. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  1221. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1222. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  1223. return self.dispatch(request, *args, **kwargs)
  1224. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  1225. return handler(request, *args, **kwargs)
  1226. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1227. return func(*args, **kwds)
  1228. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 818, in post
  1229. sum_ATM = round(sum_ATM + i["ATM"], 4)
  1230. TypeError: unsupported operand type(s) for +: 'int' and 'str'
  1231. ERROR 2019-11-01 16:34:02,698 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 84445
  1232. INFO 2019-11-01 16:34:47,995 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55
  1233. WARNING 2019-11-01 16:45:10,035 log 228 Forbidden: /predictpayment/
  1234. WARNING 2019-11-01 16:45:10,036 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 78
  1235. WARNING 2019-11-01 16:45:26,850 log 228 Forbidden: /predictpayment/
  1236. WARNING 2019-11-01 16:45:26,851 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 24
  1237. WARNING 2019-11-01 16:45:33,334 log 228 Forbidden: /predictpayment/
  1238. WARNING 2019-11-01 16:45:33,334 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 21
  1239. WARNING 2019-11-01 16:45:38,530 log 228 Forbidden: /predictpayment/
  1240. WARNING 2019-11-01 16:45:38,530 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 77
  1241. INFO 2019-11-01 16:45:52,084 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54
  1242. INFO 2019-11-01 16:56:10,281 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 200 57
  1243. INFO 2019-11-01 16:56:39,119 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55
  1244. INFO 2019-11-01 16:56:42,481 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54
  1245. INFO 2019-11-01 17:08:00,063 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  1246. INFO 2019-11-01 17:09:56,722 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  1247. INFO 2019-11-03 09:31:11,225 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  1248. WARNING 2019-11-03 09:33:59,721 log 228 Forbidden: /invoice/
  1249. WARNING 2019-11-03 09:33:59,722 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77
  1250. WARNING 2019-11-03 09:35:05,095 log 228 Forbidden: /invoice/
  1251. WARNING 2019-11-03 09:35:05,095 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77
  1252. WARNING 2019-11-03 09:35:20,688 log 228 Forbidden: /invoice/
  1253. WARNING 2019-11-03 09:35:20,689 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77
  1254. WARNING 2019-11-03 09:35:52,639 log 228 Forbidden: /invoice/
  1255. WARNING 2019-11-03 09:35:52,640 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77
  1256. INFO 2019-11-03 09:36:15,440 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  1257. WARNING 2019-11-03 09:36:19,691 log 228 Forbidden: /invoice/
  1258. WARNING 2019-11-03 09:36:19,691 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  1259. WARNING 2019-11-03 09:36:30,801 log 228 Forbidden: /invoice/
  1260. WARNING 2019-11-03 09:36:30,802 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  1261. WARNING 2019-11-03 09:40:34,660 log 228 Forbidden: /predictpayment/
  1262. WARNING 2019-11-03 09:40:34,661 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 21
  1263. WARNING 2019-11-03 09:44:21,215 log 228 Forbidden: /invoice/
  1264. WARNING 2019-11-03 09:44:21,215 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 77
  1265. WARNING 2019-11-03 09:44:32,753 log 228 Forbidden: /invoice/
  1266. WARNING 2019-11-03 09:44:32,753 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 51
  1267. INFO 2019-11-03 09:44:40,144 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24
  1268. INFO 2019-11-03 09:51:45,857 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  1269. INFO 2019-11-03 09:52:28,758 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  1270. WARNING 2019-11-03 09:56:09,368 log 228 Forbidden: /paymentoperation/
  1271. WARNING 2019-11-03 09:56:09,368 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 77
  1272. WARNING 2019-11-03 09:56:30,717 log 228 Forbidden: /paymentoperation/
  1273. WARNING 2019-11-03 09:56:30,717 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21
  1274. WARNING 2019-11-03 09:56:42,839 log 228 Forbidden: /paymentoperation/
  1275. WARNING 2019-11-03 09:56:42,839 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21
  1276. WARNING 2019-11-03 10:09:35,938 log 228 Forbidden: /paymentoperation/
  1277. WARNING 2019-11-03 10:09:35,939 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21
  1278. INFO 2019-11-03 10:10:05,544 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  1279. INFO 2019-11-03 10:10:38,281 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  1280. INFO 2019-11-03 10:14:17,182 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  1281. INFO 2019-11-03 10:14:21,515 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  1282. INFO 2019-11-03 10:16:01,412 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  1283. INFO 2019-11-03 10:16:40,654 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  1284. INFO 2019-11-03 10:16:44,598 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  1285. WARNING 2019-11-03 10:27:20,335 log 228 Forbidden: /expectedpoperation/
  1286. WARNING 2019-11-03 10:27:20,335 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 81
  1287. WARNING 2019-11-03 10:27:37,242 log 228 Forbidden: /expectedpoperation/
  1288. WARNING 2019-11-03 10:27:37,243 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 21
  1289. INFO 2019-11-03 10:27:42,844 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  1290. WARNING 2019-11-03 10:32:17,179 log 228 Forbidden: /expectedpoperation/
  1291. WARNING 2019-11-03 10:32:17,179 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24
  1292. INFO 2019-11-03 10:32:21,650 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  1293. INFO 2019-11-03 10:48:13,967 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  1294. WARNING 2019-11-03 10:49:09,912 log 228 Forbidden: /expectedptoperation/
  1295. WARNING 2019-11-03 10:49:09,912 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 78
  1296. WARNING 2019-11-03 10:49:19,047 log 228 Forbidden: /expectedptoperation/
  1297. WARNING 2019-11-03 10:49:19,048 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 78
  1298. WARNING 2019-11-03 10:53:16,383 log 228 Forbidden: /invoice/
  1299. WARNING 2019-11-03 10:53:16,383 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  1300. INFO 2019-11-03 10:53:23,953 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  1301. INFO 2019-11-03 10:55:32,096 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  1302. WARNING 2019-11-03 10:56:30,153 log 228 Forbidden: /expectedptoperation/
  1303. WARNING 2019-11-03 10:56:30,154 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 78
  1304. WARNING 2019-11-03 10:56:50,449 log 228 Forbidden: /expectedptoperation/
  1305. WARNING 2019-11-03 10:56:50,449 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 21
  1306. WARNING 2019-11-03 10:57:13,811 log 228 Forbidden: /expectedptoperation/
  1307. WARNING 2019-11-03 10:57:13,811 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 21
  1308. INFO 2019-11-03 10:58:47,136 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 200 55
  1309. INFO 2019-11-03 10:59:54,774 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 200 55
  1310. INFO 2019-11-03 11:07:29,842 basehttp 154 "GET /sales HTTP/1.1" 301 0
  1311. INFO 2019-11-03 11:07:29,865 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1312. WARNING 2019-11-03 11:07:29,914 log 228 Not Found: /favicon.ico
  1313. WARNING 2019-11-03 11:07:29,915 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3280
  1314. ERROR 2019-11-03 11:09:07,485 exception 77 Invalid HTTP_HOST header: '192.168.137.1:8000'. You may need to add '192.168.137.1' to ALLOWED_HOSTS.
  1315. WARNING 2019-11-03 11:09:07,524 log 228 Bad Request: /sales/
  1316. WARNING 2019-11-03 11:09:07,525 basehttp 154 "GET /sales/ HTTP/1.1" 400 66679
  1317. ERROR 2019-11-03 11:09:07,706 exception 77 Invalid HTTP_HOST header: '192.168.137.1:8000'. You may need to add '192.168.137.1' to ALLOWED_HOSTS.
  1318. WARNING 2019-11-03 11:09:07,742 log 228 Bad Request: /favicon.ico
  1319. WARNING 2019-11-03 11:09:07,742 basehttp 154 "GET /favicon.ico HTTP/1.1" 400 66668
  1320. INFO 2019-11-03 11:12:55,385 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1321. WARNING 2019-11-03 11:12:55,413 log 228 Not Found: /favicon.ico
  1322. WARNING 2019-11-03 11:12:55,413 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3284
  1323. WARNING 2019-11-03 11:13:36,096 log 228 Not Found: /
  1324. WARNING 2019-11-03 11:13:36,096 basehttp 154 "GET / HTTP/1.1" 404 3234
  1325. WARNING 2019-11-03 11:13:53,887 log 228 Not Found: //sales/
  1326. WARNING 2019-11-03 11:13:53,888 basehttp 154 "GET //sales/ HTTP/1.1" 404 3273
  1327. WARNING 2019-11-03 11:13:54,057 log 228 Not Found: /favicon.ico
  1328. WARNING 2019-11-03 11:13:54,058 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  1329. INFO 2019-11-03 11:14:00,119 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1330. INFO 2019-11-03 11:15:08,274 basehttp 154 "GET /sales HTTP/1.1" 301 0
  1331. INFO 2019-11-03 11:15:08,485 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1332. INFO 2019-11-03 11:15:34,578 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1333. WARNING 2019-11-03 11:15:34,750 log 228 Not Found: /favicon.ico
  1334. WARNING 2019-11-03 11:15:34,751 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  1335. INFO 2019-11-03 11:15:43,992 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1336. WARNING 2019-11-03 11:15:44,662 log 228 Not Found: /favicon.ico
  1337. WARNING 2019-11-03 11:15:44,663 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  1338. INFO 2019-11-03 11:15:46,578 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1339. WARNING 2019-11-03 11:15:46,910 log 228 Not Found: /favicon.ico
  1340. WARNING 2019-11-03 11:15:46,911 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  1341. INFO 2019-11-03 11:15:52,647 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1342. WARNING 2019-11-03 11:15:58,776 log 228 Not Found: /favicon.ico
  1343. WARNING 2019-11-03 11:15:58,776 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  1344. INFO 2019-11-03 11:16:00,367 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1345. WARNING 2019-11-03 11:16:03,144 log 228 Not Found: /favicon.ico
  1346. WARNING 2019-11-03 11:16:03,144 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  1347. INFO 2019-11-03 11:16:04,835 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1348. WARNING 2019-11-03 11:16:05,110 log 228 Not Found: /favicon.ico
  1349. WARNING 2019-11-03 11:16:05,111 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  1350. INFO 2019-11-03 11:18:35,084 basehttp 154 "GET /sales/ HTTP/1.0" 200 54
  1351. WARNING 2019-11-03 11:18:38,541 log 228 Not Found: /
  1352. WARNING 2019-11-03 11:18:38,542 basehttp 154 "GET / HTTP/1.0" 404 3234
  1353. INFO 2019-11-03 11:19:31,881 basehttp 154 "GET /invoice/ HTTP/1.0" 200 10
  1354. INFO 2019-11-03 11:20:32,044 basehttp 154 "GET /invoice HTTP/1.1" 301 0
  1355. WARNING 2019-11-03 11:20:41,040 log 228 Not Found: /
  1356. WARNING 2019-11-03 11:20:41,041 basehttp 154 "HEAD / HTTP/1.1" 404 3235
  1357. WARNING 2019-11-03 11:21:39,260 log 228 Not Found: /
  1358. WARNING 2019-11-03 11:21:39,260 basehttp 154 "HEAD / HTTP/1.1" 404 3235
  1359. INFO 2019-11-03 11:29:33,529 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1360. WARNING 2019-11-03 11:29:33,903 log 228 Not Found: /favicon.ico
  1361. WARNING 2019-11-03 11:29:33,903 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  1362. INFO 2019-11-03 11:29:41,481 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1363. INFO 2019-11-05 21:33:18,500 basehttp 154 "GET /predictpayment HTTP/1.1" 301 0
  1364. INFO 2019-11-05 21:33:20,080 basehttp 154 "GET /predictpayment/ HTTP/1.1" 200 54
  1365. WARNING 2019-11-05 21:33:20,108 log 228 Not Found: /favicon.ico
  1366. WARNING 2019-11-05 21:33:20,109 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3284
  1367. INFO 2019-11-05 21:47:09,730 basehttp 154 "GET /predictpayment/ HTTP/1.1" 200 54
  1368. INFO 2019-11-05 23:00:01,830 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1369. WARNING 2019-11-05 23:00:01,930 log 228 Not Found: /favicon.ico
  1370. WARNING 2019-11-05 23:00:01,930 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3280
  1371. INFO 2019-11-08 09:33:38,919 autoreload 597 Watching for file changes with StatReloader
  1372. INFO 2019-11-08 09:33:49,455 autoreload 597 Watching for file changes with StatReloader
  1373. INFO 2019-11-08 09:34:47,820 autoreload 597 Watching for file changes with StatReloader
  1374. INFO 2019-11-08 09:35:01,386 autoreload 597 Watching for file changes with StatReloader
  1375. INFO 2019-11-08 09:35:27,500 autoreload 597 Watching for file changes with StatReloader
  1376. INFO 2019-11-08 09:37:33,632 autoreload 597 Watching for file changes with StatReloader
  1377. INFO 2019-11-08 09:39:12,188 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\setting\dev.py changed, reloading.
  1378. INFO 2019-11-08 09:39:12,927 autoreload 597 Watching for file changes with StatReloader
  1379. INFO 2019-11-08 09:39:19,867 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\setting\dev.py changed, reloading.
  1380. INFO 2019-11-08 09:39:20,619 autoreload 597 Watching for file changes with StatReloader
  1381. INFO 2019-11-08 09:39:21,033 autoreload 597 Watching for file changes with StatReloader
  1382. INFO 2019-11-08 09:40:28,193 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\setting\dev.py changed, reloading.
  1383. INFO 2019-11-08 09:40:28,892 autoreload 597 Watching for file changes with StatReloader
  1384. INFO 2019-11-08 09:40:38,901 autoreload 597 Watching for file changes with StatReloader
  1385. INFO 2019-11-08 09:40:47,636 autoreload 597 Watching for file changes with StatReloader
  1386. INFO 2019-11-09 16:06:19,043 autoreload 597 Watching for file changes with StatReloader
  1387. INFO 2019-11-09 16:06:58,214 autoreload 597 Watching for file changes with StatReloader
  1388. INFO 2019-11-09 16:14:47,264 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\urls.py changed, reloading.
  1389. INFO 2019-11-09 16:14:47,923 autoreload 597 Watching for file changes with StatReloader
  1390. INFO 2019-11-09 16:19:18,966 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\urls.py changed, reloading.
  1391. INFO 2019-11-09 16:19:19,699 autoreload 597 Watching for file changes with StatReloader
  1392. INFO 2019-11-11 16:16:41,670 autoreload 597 Watching for file changes with StatReloader
  1393. WARNING 2019-11-11 16:17:01,982 log 228 Not Found: /favicon.ico
  1394. WARNING 2019-11-11 16:17:01,982 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 77
  1395. INFO 2019-11-11 16:17:09,641 basehttp 154 "GET /sales HTTP/1.1" 301 0
  1396. INFO 2019-11-11 16:17:09,666 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1397. WARNING 2019-11-11 16:17:09,922 log 228 Not Found: /favicon.ico
  1398. WARNING 2019-11-11 16:17:09,924 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 77
  1399. INFO 2019-11-11 16:17:14,643 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1400. INFO 2019-11-11 16:32:32,833 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  1401. INFO 2019-11-11 16:32:33,757 autoreload 597 Watching for file changes with StatReloader
  1402. INFO 2019-11-11 16:33:46,402 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  1403. INFO 2019-11-11 16:33:47,295 autoreload 597 Watching for file changes with StatReloader
  1404. INFO 2019-11-11 16:37:45,902 autoreload 597 Watching for file changes with StatReloader
  1405. ERROR 2019-11-11 16:37:47,798 log 228 Internal Server Error: /sales/
  1406. Traceback (most recent call last):
  1407. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1408. response = get_response(request)
  1409. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  1410. response = self.process_exception_by_middleware(e, request)
  1411. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  1412. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1413. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  1414. return self.dispatch(request, *args, **kwargs)
  1415. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  1416. return handler(request, *args, **kwargs)
  1417. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1418. return func(*args, **kwds)
  1419. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  1420. return http.JsonResponse(json.dumps(context))
  1421. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  1422. 'In order to allow non-dict objects to be serialized set the '
  1423. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  1424. ERROR 2019-11-11 16:37:47,902 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  1425. ERROR 2019-11-11 16:37:57,001 log 228 Internal Server Error: /sales/
  1426. Traceback (most recent call last):
  1427. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1428. response = get_response(request)
  1429. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  1430. response = self.process_exception_by_middleware(e, request)
  1431. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  1432. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1433. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  1434. return self.dispatch(request, *args, **kwargs)
  1435. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  1436. return handler(request, *args, **kwargs)
  1437. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1438. return func(*args, **kwds)
  1439. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  1440. return http.JsonResponse(json.dumps(context))
  1441. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  1442. 'In order to allow non-dict objects to be serialized set the '
  1443. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  1444. ERROR 2019-11-11 16:37:57,002 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  1445. ERROR 2019-11-11 16:38:00,350 log 228 Internal Server Error: /sales/
  1446. Traceback (most recent call last):
  1447. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1448. response = get_response(request)
  1449. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  1450. response = self.process_exception_by_middleware(e, request)
  1451. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  1452. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1453. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  1454. return self.dispatch(request, *args, **kwargs)
  1455. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  1456. return handler(request, *args, **kwargs)
  1457. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1458. return func(*args, **kwds)
  1459. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  1460. return http.JsonResponse(json.dumps(context))
  1461. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  1462. 'In order to allow non-dict objects to be serialized set the '
  1463. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  1464. ERROR 2019-11-11 16:38:00,350 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  1465. INFO 2019-11-11 16:38:21,714 autoreload 597 Watching for file changes with StatReloader
  1466. ERROR 2019-11-11 16:38:25,235 log 228 Internal Server Error: /sales/
  1467. Traceback (most recent call last):
  1468. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1469. response = get_response(request)
  1470. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  1471. response = self.process_exception_by_middleware(e, request)
  1472. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  1473. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1474. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  1475. return self.dispatch(request, *args, **kwargs)
  1476. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  1477. return handler(request, *args, **kwargs)
  1478. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1479. return func(*args, **kwds)
  1480. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  1481. return http.JsonResponse(json.dumps(context))
  1482. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  1483. 'In order to allow non-dict objects to be serialized set the '
  1484. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  1485. ERROR 2019-11-11 16:38:25,238 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  1486. ERROR 2019-11-11 16:38:47,178 log 228 Internal Server Error: /sales/
  1487. Traceback (most recent call last):
  1488. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1489. response = get_response(request)
  1490. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  1491. response = self.process_exception_by_middleware(e, request)
  1492. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  1493. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1494. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  1495. return self.dispatch(request, *args, **kwargs)
  1496. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  1497. return handler(request, *args, **kwargs)
  1498. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1499. return func(*args, **kwds)
  1500. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  1501. return http.JsonResponse(json.dumps(context))
  1502. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  1503. 'In order to allow non-dict objects to be serialized set the '
  1504. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  1505. ERROR 2019-11-11 16:38:47,179 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  1506. WARNING 2019-11-11 16:38:47,252 log 228 Not Found: /favicon.ico
  1507. WARNING 2019-11-11 16:38:47,253 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 77
  1508. INFO 2019-11-11 16:39:02,780 autoreload 597 Watching for file changes with StatReloader
  1509. ERROR 2019-11-11 16:39:05,535 log 228 Internal Server Error: /sales/
  1510. Traceback (most recent call last):
  1511. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1512. response = get_response(request)
  1513. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  1514. response = self.process_exception_by_middleware(e, request)
  1515. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  1516. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1517. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  1518. return self.dispatch(request, *args, **kwargs)
  1519. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  1520. return handler(request, *args, **kwargs)
  1521. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1522. return func(*args, **kwds)
  1523. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  1524. return http.JsonResponse(json.dumps(context))
  1525. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  1526. 'In order to allow non-dict objects to be serialized set the '
  1527. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  1528. ERROR 2019-11-11 16:39:05,536 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  1529. ERROR 2019-11-11 16:39:06,768 log 228 Internal Server Error: /sales/
  1530. Traceback (most recent call last):
  1531. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1532. response = get_response(request)
  1533. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  1534. response = self.process_exception_by_middleware(e, request)
  1535. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  1536. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1537. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  1538. return self.dispatch(request, *args, **kwargs)
  1539. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  1540. return handler(request, *args, **kwargs)
  1541. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1542. return func(*args, **kwds)
  1543. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  1544. return http.JsonResponse(json.dumps(context))
  1545. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  1546. 'In order to allow non-dict objects to be serialized set the '
  1547. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  1548. ERROR 2019-11-11 16:39:06,769 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  1549. ERROR 2019-11-11 16:39:08,320 log 228 Internal Server Error: /sales/
  1550. Traceback (most recent call last):
  1551. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1552. response = get_response(request)
  1553. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  1554. response = self.process_exception_by_middleware(e, request)
  1555. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  1556. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1557. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  1558. return self.dispatch(request, *args, **kwargs)
  1559. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  1560. return handler(request, *args, **kwargs)
  1561. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1562. return func(*args, **kwds)
  1563. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  1564. return http.JsonResponse(json.dumps(context))
  1565. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  1566. 'In order to allow non-dict objects to be serialized set the '
  1567. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  1568. ERROR 2019-11-11 16:39:08,320 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  1569. INFO 2019-11-11 16:39:28,518 autoreload 597 Watching for file changes with StatReloader
  1570. INFO 2019-11-11 16:39:30,999 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1571. INFO 2019-11-12 14:40:17,795 autoreload 597 Watching for file changes with StatReloader
  1572. ERROR 2019-11-12 14:40:34,826 log 228 Internal Server Error: /sales/
  1573. Traceback (most recent call last):
  1574. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1575. response = get_response(request)
  1576. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner
  1577. req_data = json.loads(request.body.decode())
  1578. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  1579. return _default_decoder.decode(s)
  1580. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  1581. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  1582. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  1583. raise JSONDecodeError("Expecting value", s, err.value) from None
  1584. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  1585. ERROR 2019-11-12 14:40:34,959 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  1586. ERROR 2019-11-12 14:40:34,991 log 228 Internal Server Error: /favicon.ico
  1587. Traceback (most recent call last):
  1588. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1589. response = get_response(request)
  1590. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner
  1591. req_data = json.loads(request.body.decode())
  1592. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  1593. return _default_decoder.decode(s)
  1594. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  1595. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  1596. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  1597. raise JSONDecodeError("Expecting value", s, err.value) from None
  1598. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  1599. ERROR 2019-11-12 14:40:34,992 basehttp 154 "GET /favicon.ico HTTP/1.1" 500 27
  1600. INFO 2019-11-12 14:41:55,920 autoreload 597 Watching for file changes with StatReloader
  1601. ERROR 2019-11-12 14:41:59,326 log 228 Internal Server Error: /sales/
  1602. Traceback (most recent call last):
  1603. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1604. response = get_response(request)
  1605. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner
  1606. req_data = json.loads(request.body.decode())
  1607. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  1608. return _default_decoder.decode(s)
  1609. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  1610. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  1611. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  1612. raise JSONDecodeError("Expecting value", s, err.value) from None
  1613. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  1614. ERROR 2019-11-12 14:41:59,327 basehttp 154 "GET /sales/ HTTP/1.1" 500 73496
  1615. ERROR 2019-11-12 14:41:59,575 log 228 Internal Server Error: /favicon.ico
  1616. Traceback (most recent call last):
  1617. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1618. response = get_response(request)
  1619. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner
  1620. req_data = json.loads(request.body.decode())
  1621. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  1622. return _default_decoder.decode(s)
  1623. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  1624. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  1625. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  1626. raise JSONDecodeError("Expecting value", s, err.value) from None
  1627. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  1628. ERROR 2019-11-12 14:41:59,577 basehttp 154 "GET /favicon.ico HTTP/1.1" 500 73597
  1629. INFO 2019-11-12 14:44:10,525 autoreload 597 Watching for file changes with StatReloader
  1630. ERROR 2019-11-12 14:44:14,891 log 228 Internal Server Error: /sales/
  1631. Traceback (most recent call last):
  1632. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1633. response = get_response(request)
  1634. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner
  1635. req_data = json.loads(request.body.decode())
  1636. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  1637. return _default_decoder.decode(s)
  1638. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  1639. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  1640. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  1641. raise JSONDecodeError("Expecting value", s, err.value) from None
  1642. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  1643. ERROR 2019-11-12 14:44:14,892 basehttp 154 "GET /sales/ HTTP/1.1" 500 73537
  1644. ERROR 2019-11-12 14:44:15,024 log 228 Internal Server Error: /favicon.ico
  1645. Traceback (most recent call last):
  1646. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1647. response = get_response(request)
  1648. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner
  1649. req_data = json.loads(request.body.decode())
  1650. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  1651. return _default_decoder.decode(s)
  1652. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  1653. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  1654. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  1655. raise JSONDecodeError("Expecting value", s, err.value) from None
  1656. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  1657. ERROR 2019-11-12 14:44:15,025 basehttp 154 "GET /favicon.ico HTTP/1.1" 500 73638
  1658. INFO 2019-11-12 14:44:44,179 autoreload 597 Watching for file changes with StatReloader
  1659. INFO 2019-11-12 14:44:45,988 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1660. WARNING 2019-11-12 14:44:46,053 log 228 Not Found: /favicon.ico
  1661. WARNING 2019-11-12 14:44:46,054 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3280
  1662. INFO 2019-11-12 14:45:20,751 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  1663. INFO 2019-11-12 14:45:21,715 autoreload 597 Watching for file changes with StatReloader
  1664. INFO 2019-11-12 14:46:22,467 autoreload 597 Watching for file changes with StatReloader
  1665. INFO 2019-11-12 14:46:37,151 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1666. INFO 2019-11-12 14:47:12,111 autoreload 597 Watching for file changes with StatReloader
  1667. INFO 2019-11-12 14:47:14,473 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1668. INFO 2019-11-12 14:47:29,166 autoreload 597 Watching for file changes with StatReloader
  1669. INFO 2019-11-12 14:47:31,456 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1670. INFO 2019-11-12 14:47:51,244 autoreload 597 Watching for file changes with StatReloader
  1671. INFO 2019-11-12 14:47:53,102 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1672. INFO 2019-11-12 14:48:18,072 autoreload 597 Watching for file changes with StatReloader
  1673. INFO 2019-11-12 14:48:21,911 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1674. INFO 2019-11-12 14:48:41,055 autoreload 597 Watching for file changes with StatReloader
  1675. INFO 2019-11-12 14:48:43,306 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1676. INFO 2019-11-12 14:50:12,409 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  1677. INFO 2019-11-12 14:50:13,187 autoreload 597 Watching for file changes with StatReloader
  1678. WARNING 2019-11-12 14:50:55,463 log 228 Forbidden: /sales/
  1679. WARNING 2019-11-12 14:50:55,464 basehttp 154 "GET /sales/ HTTP/1.1" 403 27
  1680. INFO 2019-11-12 14:52:22,141 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  1681. INFO 2019-11-12 14:52:23,594 autoreload 597 Watching for file changes with StatReloader
  1682. INFO 2019-11-12 14:52:51,587 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1683. INFO 2019-11-12 14:54:17,547 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  1684. INFO 2019-11-12 14:54:18,321 autoreload 597 Watching for file changes with StatReloader
  1685. INFO 2019-11-12 14:56:21,151 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  1686. INFO 2019-11-12 14:56:22,161 autoreload 597 Watching for file changes with StatReloader
  1687. INFO 2019-11-12 14:56:34,244 autoreload 597 Watching for file changes with StatReloader
  1688. ERROR 2019-11-12 14:57:09,461 log 228 Internal Server Error: /invoice/
  1689. Traceback (most recent call last):
  1690. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1691. response = get_response(request)
  1692. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 11, in inner
  1693. req_data = json.loads(request.body.decode())
  1694. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  1695. return _default_decoder.decode(s)
  1696. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  1697. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  1698. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  1699. raise JSONDecodeError("Expecting value", s, err.value) from None
  1700. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  1701. ERROR 2019-11-12 14:57:09,463 basehttp 154 "POST /invoice/ HTTP/1.1" 500 88452
  1702. INFO 2019-11-12 14:58:18,482 autoreload 597 Watching for file changes with StatReloader
  1703. ERROR 2019-11-12 14:58:21,405 log 228 Internal Server Error: /invoice/
  1704. Traceback (most recent call last):
  1705. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1706. response = get_response(request)
  1707. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 12, in inner
  1708. req_data = json.loads(request.body.decode())
  1709. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  1710. return _default_decoder.decode(s)
  1711. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  1712. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  1713. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  1714. raise JSONDecodeError("Expecting value", s, err.value) from None
  1715. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  1716. ERROR 2019-11-12 14:58:21,408 basehttp 154 "POST /invoice/ HTTP/1.1" 500 88493
  1717. INFO 2019-11-12 15:00:00,823 autoreload 597 Watching for file changes with StatReloader
  1718. ERROR 2019-11-12 15:00:03,448 log 228 Internal Server Error: /invoice/
  1719. Traceback (most recent call last):
  1720. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1721. response = get_response(request)
  1722. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 13, in inner
  1723. req_data = json.loads(request.body.decode())
  1724. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  1725. return _default_decoder.decode(s)
  1726. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  1727. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  1728. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  1729. raise JSONDecodeError("Expecting value", s, err.value) from None
  1730. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  1731. ERROR 2019-11-12 15:00:03,449 basehttp 154 "POST /invoice/ HTTP/1.1" 500 88529
  1732. INFO 2019-11-12 15:00:47,374 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1733. INFO 2019-11-12 15:00:56,262 autoreload 597 Watching for file changes with StatReloader
  1734. INFO 2019-11-12 15:00:57,943 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1735. ERROR 2019-11-12 15:01:50,029 log 228 Internal Server Error: /invoice/
  1736. Traceback (most recent call last):
  1737. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1738. response = get_response(request)
  1739. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  1740. response = self.process_exception_by_middleware(e, request)
  1741. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  1742. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1743. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  1744. return self.dispatch(request, *args, **kwargs)
  1745. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  1746. return handler(request, *args, **kwargs)
  1747. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1748. return func(*args, **kwds)
  1749. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post
  1750. print(ZL_NO[:3])
  1751. TypeError: 'NoneType' object is not subscriptable
  1752. ERROR 2019-11-12 15:01:50,036 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293
  1753. INFO 2019-11-12 15:01:58,863 autoreload 597 Watching for file changes with StatReloader
  1754. ERROR 2019-11-12 15:02:02,319 log 228 Internal Server Error: /invoice/
  1755. Traceback (most recent call last):
  1756. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1757. response = get_response(request)
  1758. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  1759. response = self.process_exception_by_middleware(e, request)
  1760. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  1761. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1762. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  1763. return self.dispatch(request, *args, **kwargs)
  1764. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  1765. return handler(request, *args, **kwargs)
  1766. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1767. return func(*args, **kwds)
  1768. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post
  1769. print(ZL_NO[:3])
  1770. TypeError: 'NoneType' object is not subscriptable
  1771. ERROR 2019-11-12 15:02:02,320 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293
  1772. INFO 2019-11-12 15:02:57,081 autoreload 597 Watching for file changes with StatReloader
  1773. ERROR 2019-11-12 15:03:01,095 log 228 Internal Server Error: /invoice/
  1774. Traceback (most recent call last):
  1775. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1776. response = get_response(request)
  1777. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  1778. response = self.process_exception_by_middleware(e, request)
  1779. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  1780. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1781. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  1782. return self.dispatch(request, *args, **kwargs)
  1783. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  1784. return handler(request, *args, **kwargs)
  1785. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1786. return func(*args, **kwds)
  1787. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post
  1788. print(ZL_NO[:3])
  1789. TypeError: 'NoneType' object is not subscriptable
  1790. ERROR 2019-11-12 15:03:01,097 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293
  1791. INFO 2019-11-12 15:03:57,379 autoreload 597 Watching for file changes with StatReloader
  1792. ERROR 2019-11-12 15:04:00,651 log 228 Internal Server Error: /invoice/
  1793. Traceback (most recent call last):
  1794. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1795. response = get_response(request)
  1796. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 14, in inner
  1797. user = req_data.get("user") # 用户名
  1798. AttributeError: 'str' object has no attribute 'get'
  1799. ERROR 2019-11-12 15:04:00,655 basehttp 154 "POST /invoice/ HTTP/1.1" 500 58094
  1800. INFO 2019-11-12 15:04:57,318 autoreload 597 Watching for file changes with StatReloader
  1801. ERROR 2019-11-12 15:05:00,700 log 228 Internal Server Error: /sales/
  1802. Traceback (most recent call last):
  1803. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1804. response = get_response(request)
  1805. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 14, in inner
  1806. user = req_data.get("user") # 用户名
  1807. AttributeError: 'str' object has no attribute 'get'
  1808. ERROR 2019-11-12 15:05:00,701 basehttp 154 "GET /sales/ HTTP/1.1" 500 58071
  1809. INFO 2019-11-12 15:05:14,607 autoreload 597 Watching for file changes with StatReloader
  1810. INFO 2019-11-12 15:05:16,907 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  1811. ERROR 2019-11-12 15:05:58,700 log 228 Internal Server Error: /invoice/
  1812. Traceback (most recent call last):
  1813. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1814. response = get_response(request)
  1815. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  1816. response = self.process_exception_by_middleware(e, request)
  1817. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  1818. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1819. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  1820. return self.dispatch(request, *args, **kwargs)
  1821. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  1822. return handler(request, *args, **kwargs)
  1823. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1824. return func(*args, **kwds)
  1825. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post
  1826. print(ZL_NO[:3])
  1827. TypeError: 'NoneType' object is not subscriptable
  1828. ERROR 2019-11-12 15:05:58,701 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293
  1829. INFO 2019-11-12 15:06:40,324 autoreload 597 Watching for file changes with StatReloader
  1830. ERROR 2019-11-12 15:06:43,978 log 228 Internal Server Error: /invoice/
  1831. Traceback (most recent call last):
  1832. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1833. response = get_response(request)
  1834. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  1835. response = self.process_exception_by_middleware(e, request)
  1836. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  1837. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1838. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  1839. return self.dispatch(request, *args, **kwargs)
  1840. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  1841. return handler(request, *args, **kwargs)
  1842. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1843. return func(*args, **kwds)
  1844. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 71, in post
  1845. if ZL_NO[:3] != 'LPF' or len(ZL_NO) != 10:
  1846. TypeError: 'NoneType' object is not subscriptable
  1847. ERROR 2019-11-12 15:06:43,980 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84325
  1848. INFO 2019-11-12 15:06:56,069 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py changed, reloading.
  1849. INFO 2019-11-12 15:06:57,864 autoreload 597 Watching for file changes with StatReloader
  1850. INFO 2019-11-12 15:08:48,355 autoreload 597 Watching for file changes with StatReloader
  1851. WARNING 2019-11-12 15:09:09,420 log 228 Forbidden: /invoice/
  1852. WARNING 2019-11-12 15:09:09,421 basehttp 154 "POST /invoice/ HTTP/1.1" 403 16
  1853. INFO 2019-11-12 15:10:23,366 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  1854. INFO 2019-11-12 15:10:24,156 autoreload 597 Watching for file changes with StatReloader
  1855. INFO 2019-11-12 15:11:13,161 autoreload 597 Watching for file changes with StatReloader
  1856. WARNING 2019-11-12 15:11:16,082 log 228 Forbidden: /invoice/
  1857. WARNING 2019-11-12 15:11:16,083 basehttp 154 "POST /invoice/ HTTP/1.1" 403 27
  1858. INFO 2019-11-12 15:12:53,101 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  1859. INFO 2019-11-12 15:12:53,904 autoreload 597 Watching for file changes with StatReloader
  1860. INFO 2019-11-12 15:13:17,786 autoreload 597 Watching for file changes with StatReloader
  1861. WARNING 2019-11-12 15:13:26,023 log 228 Forbidden: /invoice/
  1862. WARNING 2019-11-12 15:13:26,024 basehttp 154 "POST /invoice/ HTTP/1.1" 403 27
  1863. INFO 2019-11-12 15:14:16,843 autoreload 597 Watching for file changes with StatReloader
  1864. WARNING 2019-11-12 15:14:19,319 log 228 Forbidden: /invoice/
  1865. WARNING 2019-11-12 15:14:19,320 basehttp 154 "POST /invoice/ HTTP/1.1" 403 27
  1866. INFO 2019-11-12 15:15:41,239 autoreload 597 Watching for file changes with StatReloader
  1867. WARNING 2019-11-12 15:15:44,018 log 228 Forbidden: /invoice/
  1868. WARNING 2019-11-12 15:15:44,018 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  1869. WARNING 2019-11-12 15:15:52,636 log 228 Forbidden: /invoice/
  1870. WARNING 2019-11-12 15:15:52,638 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  1871. WARNING 2019-11-12 15:16:08,616 log 228 Forbidden: /invoice/
  1872. WARNING 2019-11-12 15:16:08,616 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  1873. WARNING 2019-11-12 15:16:21,275 log 228 Forbidden: /invoice/
  1874. WARNING 2019-11-12 15:16:21,276 basehttp 154 "POST /invoice/ HTTP/1.1" 403 18
  1875. INFO 2019-11-12 15:17:29,140 autoreload 597 Watching for file changes with StatReloader
  1876. INFO 2019-11-12 15:17:51,169 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  1877. WARNING 2019-11-12 15:18:49,024 log 228 Forbidden: /invoice/
  1878. WARNING 2019-11-12 15:18:49,025 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  1879. WARNING 2019-11-12 15:19:43,121 log 228 Forbidden: /invoice/
  1880. WARNING 2019-11-12 15:19:43,121 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  1881. INFO 2019-11-12 15:20:26,760 autoreload 597 Watching for file changes with StatReloader
  1882. WARNING 2019-11-12 15:20:29,834 log 228 Forbidden: /invoice/
  1883. WARNING 2019-11-12 15:20:29,835 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 15
  1884. WARNING 2019-11-12 15:20:49,384 log 228 Forbidden: /invoice/
  1885. WARNING 2019-11-12 15:20:49,384 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  1886. INFO 2019-11-12 15:21:19,639 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  1887. INFO 2019-11-12 15:22:23,031 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  1888. INFO 2019-11-12 15:22:24,106 autoreload 597 Watching for file changes with StatReloader
  1889. INFO 2019-11-12 15:37:34,924 autoreload 597 Watching for file changes with StatReloader
  1890. WARNING 2019-11-12 15:38:19,360 log 228 Forbidden (CSRF cookie not set.): /invoice/
  1891. WARNING 2019-11-12 15:38:19,361 basehttp 154 "POST /invoice/ HTTP/1.1" 403 2868
  1892. INFO 2019-11-12 15:38:59,231 autoreload 597 Watching for file changes with StatReloader
  1893. INFO 2019-11-12 15:39:03,593 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  1894. INFO 2019-11-12 15:39:12,325 autoreload 597 Watching for file changes with StatReloader
  1895. WARNING 2019-11-12 15:39:15,126 log 228 Forbidden (CSRF cookie not set.): /invoice/
  1896. WARNING 2019-11-12 15:39:15,128 basehttp 154 "POST /invoice/ HTTP/1.1" 403 2868
  1897. WARNING 2019-11-12 15:40:51,787 log 228 Forbidden: /invoice/
  1898. WARNING 2019-11-12 15:40:51,787 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 18
  1899. WARNING 2019-11-12 15:41:12,896 log 228 Forbidden (CSRF cookie not set.): /invoice/
  1900. WARNING 2019-11-12 15:41:12,896 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868
  1901. WARNING 2019-11-12 15:44:11,969 log 228 Forbidden (CSRF cookie not set.): /invoice/
  1902. WARNING 2019-11-12 15:44:11,969 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868
  1903. WARNING 2019-11-12 15:50:04,312 log 228 Forbidden (CSRF cookie not set.): /invoice/
  1904. WARNING 2019-11-12 15:50:04,313 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868
  1905. INFO 2019-11-12 15:50:17,119 autoreload 597 Watching for file changes with StatReloader
  1906. WARNING 2019-11-12 15:53:05,171 log 228 Forbidden (CSRF cookie not set.): /invoice/
  1907. WARNING 2019-11-12 15:53:05,172 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868
  1908. WARNING 2019-11-12 15:53:44,032 log 228 Forbidden (CSRF cookie not set.): /invoice/
  1909. WARNING 2019-11-12 15:53:44,033 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868
  1910. INFO 2019-11-12 15:54:05,117 autoreload 597 Watching for file changes with StatReloader
  1911. WARNING 2019-11-12 15:54:30,324 log 228 Forbidden (CSRF cookie not set.): /invoice/
  1912. WARNING 2019-11-12 15:54:30,325 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868
  1913. INFO 2019-11-12 16:19:49,910 autoreload 597 Watching for file changes with StatReloader
  1914. INFO 2019-11-12 16:20:27,691 autoreload 597 Watching for file changes with StatReloader
  1915. WARNING 2019-11-12 16:22:12,626 log 228 Forbidden (CSRF cookie not set.): /invoice/
  1916. WARNING 2019-11-12 16:22:12,627 basehttp 154 "POST /invoice/ HTTP/1.1" 403 2868
  1917. INFO 2019-11-12 16:22:39,263 autoreload 597 Watching for file changes with StatReloader
  1918. INFO 2019-11-12 16:23:05,093 autoreload 597 Watching for file changes with StatReloader
  1919. WARNING 2019-11-12 16:23:21,755 log 228 Forbidden: /invoice/
  1920. WARNING 2019-11-12 16:23:21,755 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  1921. INFO 2019-11-12 16:24:40,820 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  1922. INFO 2019-11-12 16:44:35,511 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  1923. ERROR 2019-11-12 16:44:51,952 log 228 Internal Server Error: /expectedpoperation/
  1924. Traceback (most recent call last):
  1925. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  1926. return self.cursor.execute(sql, params)
  1927. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  1928. return self.cursor.execute(sql, params)
  1929. pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CHK_MAN' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CLS_DATE' 无效。 (207); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  1930. The above exception was the direct cause of the following exception:
  1931. Traceback (most recent call last):
  1932. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1933. response = get_response(request)
  1934. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  1935. response = self.process_exception_by_middleware(e, request)
  1936. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  1937. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  1938. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  1939. return self.dispatch(request, *args, **kwargs)
  1940. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  1941. return handler(request, *args, **kwargs)
  1942. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  1943. return func(*args, **kwds)
  1944. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 395, in post
  1945. row_usr = usr_data(USR, USR_NAME, datetime.datetime.strptime(RP_DD, '%Y-%m-%d'))
  1946. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\usr_data.py", line 13, in usr_data
  1947. cursor.execute("INSERT INTO SALM(SAL_NO,[NAME],USR,CHK_MAN,CLS_DATE,SYS_DATE)VALUES (%s,%s,'ADMIN','ADMIN',%s,%s)", [USR, USR_NAME,DATE,DATE])
  1948. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  1949. return super().execute(sql, params)
  1950. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  1951. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  1952. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  1953. return executor(sql, params, many, context)
  1954. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  1955. return self.cursor.execute(sql, params)
  1956. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__
  1957. raise dj_exc_value.with_traceback(traceback) from exc_value
  1958. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  1959. return self.cursor.execute(sql, params)
  1960. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  1961. return self.cursor.execute(sql, params)
  1962. django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CHK_MAN' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CLS_DATE' 无效。 (207); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  1963. ERROR 2019-11-12 16:44:51,956 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 133940
  1964. INFO 2019-11-12 16:48:07,723 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\usr_data.py changed, reloading.
  1965. INFO 2019-11-12 16:48:08,489 autoreload 597 Watching for file changes with StatReloader
  1966. INFO 2019-11-12 16:49:09,677 autoreload 597 Watching for file changes with StatReloader
  1967. INFO 2019-11-12 16:49:14,521 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  1968. INFO 2019-11-12 16:51:02,232 autoreload 597 Watching for file changes with StatReloader
  1969. INFO 2019-11-12 17:01:00,950 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  1970. INFO 2019-11-12 17:01:01,942 autoreload 597 Watching for file changes with StatReloader
  1971. INFO 2019-11-12 17:05:43,200 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  1972. INFO 2019-11-12 17:05:44,417 autoreload 597 Watching for file changes with StatReloader
  1973. INFO 2019-11-12 17:06:24,227 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  1974. INFO 2019-11-12 17:06:25,264 autoreload 597 Watching for file changes with StatReloader
  1975. INFO 2019-11-12 17:09:35,337 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  1976. INFO 2019-11-12 17:09:36,256 autoreload 597 Watching for file changes with StatReloader
  1977. INFO 2019-11-12 17:10:12,277 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  1978. INFO 2019-11-12 17:10:13,064 autoreload 597 Watching for file changes with StatReloader
  1979. INFO 2019-11-12 17:11:18,793 autoreload 597 Watching for file changes with StatReloader
  1980. INFO 2019-11-12 17:13:01,256 autoreload 597 Watching for file changes with StatReloader
  1981. WARNING 2019-11-12 17:13:04,170 log 228 Forbidden: /expectedpoperation/
  1982. WARNING 2019-11-12 17:13:04,171 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24
  1983. WARNING 2019-11-12 17:13:11,723 log 228 Forbidden: /expectedpoperation/
  1984. WARNING 2019-11-12 17:13:11,725 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 21
  1985. INFO 2019-11-13 09:19:57,023 autoreload 597 Watching for file changes with StatReloader
  1986. WARNING 2019-11-13 09:21:04,056 log 228 Forbidden: /expectedpoperation/
  1987. WARNING 2019-11-13 09:21:04,056 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 30
  1988. ERROR 2019-11-13 09:21:16,725 log 228 Internal Server Error: /expectedpoperation/
  1989. Traceback (most recent call last):
  1990. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  1991. return self.cursor.execute(sql)
  1992. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  1993. return self.cursor.execute(sql, params)
  1994. pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  1995. The above exception was the direct cause of the following exception:
  1996. Traceback (most recent call last):
  1997. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  1998. response = get_response(request)
  1999. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2000. response = self.process_exception_by_middleware(e, request)
  2001. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2002. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2003. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2004. return self.dispatch(request, *args, **kwargs)
  2005. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2006. return handler(request, *args, **kwargs)
  2007. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2008. return func(*args, **kwds)
  2009. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 388, in post
  2010. sum_CACC_NO=et_CACC_NO(CACC_NO)
  2011. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py", line 21, in et_CACC_NO
  2012. SUM_CACC_NO = cursor.execute(sql).fetchall()[0][0]
  2013. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  2014. return super().execute(sql, params)
  2015. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  2016. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  2017. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  2018. return executor(sql, params, many, context)
  2019. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  2020. return self.cursor.execute(sql, params)
  2021. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__
  2022. raise dj_exc_value.with_traceback(traceback) from exc_value
  2023. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  2024. return self.cursor.execute(sql)
  2025. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  2026. return self.cursor.execute(sql, params)
  2027. django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  2028. ERROR 2019-11-13 09:21:16,728 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 129920
  2029. INFO 2019-11-13 09:22:20,447 autoreload 597 Watching for file changes with StatReloader
  2030. ERROR 2019-11-13 09:22:24,316 log 228 Internal Server Error: /expectedpoperation/
  2031. Traceback (most recent call last):
  2032. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  2033. return self.cursor.execute(sql)
  2034. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  2035. return self.cursor.execute(sql, params)
  2036. pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  2037. The above exception was the direct cause of the following exception:
  2038. Traceback (most recent call last):
  2039. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2040. response = get_response(request)
  2041. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2042. response = self.process_exception_by_middleware(e, request)
  2043. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2044. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2045. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2046. return self.dispatch(request, *args, **kwargs)
  2047. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2048. return handler(request, *args, **kwargs)
  2049. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2050. return func(*args, **kwds)
  2051. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 388, in post
  2052. sum_CACC_NO=et_CACC_NO(CACC_NO)
  2053. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py", line 22, in et_CACC_NO
  2054. SUM_CACC_NO = cursor.execute(sql).fetchall()[0][0]
  2055. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  2056. return super().execute(sql, params)
  2057. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  2058. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  2059. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  2060. return executor(sql, params, many, context)
  2061. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  2062. return self.cursor.execute(sql, params)
  2063. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__
  2064. raise dj_exc_value.with_traceback(traceback) from exc_value
  2065. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  2066. return self.cursor.execute(sql)
  2067. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  2068. return self.cursor.execute(sql, params)
  2069. django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  2070. ERROR 2019-11-13 09:22:24,319 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 129926
  2071. WARNING 2019-11-13 09:22:54,159 log 228 Forbidden: /expectedpoperation/
  2072. WARNING 2019-11-13 09:22:54,160 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 30
  2073. INFO 2019-11-13 09:23:11,800 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py changed, reloading.
  2074. INFO 2019-11-13 09:23:12,555 autoreload 597 Watching for file changes with StatReloader
  2075. INFO 2019-11-13 09:23:18,851 autoreload 597 Watching for file changes with StatReloader
  2076. WARNING 2019-11-13 09:23:21,004 log 228 Forbidden: /expectedpoperation/
  2077. WARNING 2019-11-13 09:23:21,004 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 30
  2078. ERROR 2019-11-13 09:23:29,487 log 228 Internal Server Error: /expectedpoperation/
  2079. Traceback (most recent call last):
  2080. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  2081. return self.cursor.execute(sql)
  2082. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  2083. return self.cursor.execute(sql, params)
  2084. pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  2085. The above exception was the direct cause of the following exception:
  2086. Traceback (most recent call last):
  2087. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2088. response = get_response(request)
  2089. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2090. response = self.process_exception_by_middleware(e, request)
  2091. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2092. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2093. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2094. return self.dispatch(request, *args, **kwargs)
  2095. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2096. return handler(request, *args, **kwargs)
  2097. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2098. return func(*args, **kwds)
  2099. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 388, in post
  2100. sum_CACC_NO=et_CACC_NO(CACC_NO)
  2101. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py", line 22, in et_CACC_NO
  2102. SUM_CACC_NO = cursor.execute(sql).fetchall()[0][0]
  2103. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  2104. return super().execute(sql, params)
  2105. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  2106. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  2107. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  2108. return executor(sql, params, many, context)
  2109. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  2110. return self.cursor.execute(sql, params)
  2111. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__
  2112. raise dj_exc_value.with_traceback(traceback) from exc_value
  2113. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  2114. return self.cursor.execute(sql)
  2115. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  2116. return self.cursor.execute(sql, params)
  2117. django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  2118. ERROR 2019-11-13 09:23:29,490 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 129912
  2119. INFO 2019-11-13 09:23:58,046 autoreload 597 Watching for file changes with StatReloader
  2120. ERROR 2019-11-13 09:24:00,932 log 228 Internal Server Error: /expectedpoperation/
  2121. Traceback (most recent call last):
  2122. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2123. response = get_response(request)
  2124. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2125. response = self.process_exception_by_middleware(e, request)
  2126. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2127. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2128. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2129. return self.dispatch(request, *args, **kwargs)
  2130. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2131. return handler(request, *args, **kwargs)
  2132. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2133. return func(*args, **kwds)
  2134. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 389, in post
  2135. if sum_CACC_NO <=0:
  2136. TypeError: '<=' not supported between instances of 'HttpResponseForbidden' and 'int'
  2137. ERROR 2019-11-13 09:24:00,933 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 85820
  2138. INFO 2019-11-13 09:26:39,132 autoreload 597 Watching for file changes with StatReloader
  2139. ERROR 2019-11-13 09:26:56,637 log 228 Internal Server Error: /expectedpoperation/
  2140. Traceback (most recent call last):
  2141. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2142. response = get_response(request)
  2143. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2144. response = self.process_exception_by_middleware(e, request)
  2145. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2146. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2147. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2148. return self.dispatch(request, *args, **kwargs)
  2149. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2150. return handler(request, *args, **kwargs)
  2151. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2152. return func(*args, **kwds)
  2153. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post
  2154. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  2155. IndexError: list index out of range
  2156. ERROR 2019-11-13 09:26:56,641 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86319
  2157. INFO 2019-11-13 09:28:39,553 autoreload 597 Watching for file changes with StatReloader
  2158. ERROR 2019-11-13 09:28:42,917 log 228 Internal Server Error: /expectedpoperation/
  2159. Traceback (most recent call last):
  2160. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2161. response = get_response(request)
  2162. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2163. response = self.process_exception_by_middleware(e, request)
  2164. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2165. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2166. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2167. return self.dispatch(request, *args, **kwargs)
  2168. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2169. return handler(request, *args, **kwargs)
  2170. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2171. return func(*args, **kwds)
  2172. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post
  2173. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  2174. IndexError: list index out of range
  2175. ERROR 2019-11-13 09:28:42,918 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  2176. INFO 2019-11-13 09:29:10,905 autoreload 597 Watching for file changes with StatReloader
  2177. ERROR 2019-11-13 09:29:15,364 log 228 Internal Server Error: /expectedpoperation/
  2178. Traceback (most recent call last):
  2179. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2180. response = get_response(request)
  2181. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2182. response = self.process_exception_by_middleware(e, request)
  2183. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2184. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2185. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2186. return self.dispatch(request, *args, **kwargs)
  2187. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2188. return handler(request, *args, **kwargs)
  2189. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2190. return func(*args, **kwds)
  2191. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post
  2192. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  2193. IndexError: list index out of range
  2194. ERROR 2019-11-13 09:29:15,365 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  2195. INFO 2019-11-13 09:32:18,835 autoreload 597 Watching for file changes with StatReloader
  2196. ERROR 2019-11-13 09:32:22,715 log 228 Internal Server Error: /expectedpoperation/
  2197. Traceback (most recent call last):
  2198. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2199. response = get_response(request)
  2200. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2201. response = self.process_exception_by_middleware(e, request)
  2202. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2203. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2204. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2205. return self.dispatch(request, *args, **kwargs)
  2206. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2207. return handler(request, *args, **kwargs)
  2208. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2209. return func(*args, **kwds)
  2210. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post
  2211. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  2212. IndexError: list index out of range
  2213. ERROR 2019-11-13 09:32:22,717 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  2214. INFO 2019-11-13 09:34:12,207 autoreload 597 Watching for file changes with StatReloader
  2215. ERROR 2019-11-13 09:34:15,270 log 228 Internal Server Error: /expectedpoperation/
  2216. Traceback (most recent call last):
  2217. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2218. response = get_response(request)
  2219. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2220. response = self.process_exception_by_middleware(e, request)
  2221. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2222. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2223. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2224. return self.dispatch(request, *args, **kwargs)
  2225. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2226. return handler(request, *args, **kwargs)
  2227. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2228. return func(*args, **kwds)
  2229. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 408, in post
  2230. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  2231. IndexError: list index out of range
  2232. ERROR 2019-11-13 09:34:15,272 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  2233. INFO 2019-11-13 09:34:43,791 autoreload 597 Watching for file changes with StatReloader
  2234. ERROR 2019-11-13 09:34:48,049 log 228 Internal Server Error: /expectedpoperation/
  2235. Traceback (most recent call last):
  2236. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2237. response = get_response(request)
  2238. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2239. response = self.process_exception_by_middleware(e, request)
  2240. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2241. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2242. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2243. return self.dispatch(request, *args, **kwargs)
  2244. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2245. return handler(request, *args, **kwargs)
  2246. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2247. return func(*args, **kwds)
  2248. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post
  2249. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  2250. IndexError: list index out of range
  2251. ERROR 2019-11-13 09:34:48,050 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  2252. INFO 2019-11-13 09:35:15,342 autoreload 597 Watching for file changes with StatReloader
  2253. ERROR 2019-11-13 09:35:18,687 log 228 Internal Server Error: /expectedpoperation/
  2254. Traceback (most recent call last):
  2255. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2256. response = get_response(request)
  2257. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2258. response = self.process_exception_by_middleware(e, request)
  2259. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2260. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2261. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2262. return self.dispatch(request, *args, **kwargs)
  2263. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2264. return handler(request, *args, **kwargs)
  2265. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2266. return func(*args, **kwds)
  2267. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post
  2268. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  2269. IndexError: list index out of range
  2270. ERROR 2019-11-13 09:35:18,689 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  2271. INFO 2019-11-13 09:35:41,580 autoreload 597 Watching for file changes with StatReloader
  2272. ERROR 2019-11-13 09:35:45,021 log 228 Internal Server Error: /expectedpoperation/
  2273. Traceback (most recent call last):
  2274. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2275. response = get_response(request)
  2276. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2277. response = self.process_exception_by_middleware(e, request)
  2278. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2279. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2280. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2281. return self.dispatch(request, *args, **kwargs)
  2282. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2283. return handler(request, *args, **kwargs)
  2284. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2285. return func(*args, **kwds)
  2286. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post
  2287. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  2288. IndexError: list index out of range
  2289. ERROR 2019-11-13 09:35:45,024 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  2290. INFO 2019-11-13 09:36:21,091 autoreload 597 Watching for file changes with StatReloader
  2291. ERROR 2019-11-13 09:36:25,861 log 228 Internal Server Error: /expectedpoperation/
  2292. Traceback (most recent call last):
  2293. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2294. response = get_response(request)
  2295. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2296. response = self.process_exception_by_middleware(e, request)
  2297. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2298. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2299. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2300. return self.dispatch(request, *args, **kwargs)
  2301. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2302. return handler(request, *args, **kwargs)
  2303. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2304. return func(*args, **kwds)
  2305. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post
  2306. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  2307. IndexError: list index out of range
  2308. ERROR 2019-11-13 09:36:25,862 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  2309. INFO 2019-11-13 09:37:08,687 autoreload 597 Watching for file changes with StatReloader
  2310. ERROR 2019-11-13 09:37:12,871 log 228 Internal Server Error: /expectedpoperation/
  2311. Traceback (most recent call last):
  2312. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2313. response = get_response(request)
  2314. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2315. response = self.process_exception_by_middleware(e, request)
  2316. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2317. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2318. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2319. return self.dispatch(request, *args, **kwargs)
  2320. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2321. return handler(request, *args, **kwargs)
  2322. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2323. return func(*args, **kwds)
  2324. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post
  2325. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  2326. IndexError: list index out of range
  2327. ERROR 2019-11-13 09:37:12,872 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86462
  2328. INFO 2019-11-13 09:37:32,747 autoreload 597 Watching for file changes with StatReloader
  2329. WARNING 2019-11-13 09:37:36,237 log 228 Forbidden: /expectedpoperation/
  2330. WARNING 2019-11-13 09:37:36,237 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24
  2331. INFO 2019-11-13 09:38:12,641 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2332. INFO 2019-11-13 09:38:13,462 autoreload 597 Watching for file changes with StatReloader
  2333. WARNING 2019-11-13 09:38:22,592 log 228 Forbidden: /expectedpoperation/
  2334. WARNING 2019-11-13 09:38:22,592 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24
  2335. INFO 2019-11-13 09:39:04,964 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2336. INFO 2019-11-13 09:39:05,745 autoreload 597 Watching for file changes with StatReloader
  2337. INFO 2019-11-13 09:39:17,523 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py changed, reloading.
  2338. INFO 2019-11-13 09:39:18,229 autoreload 597 Watching for file changes with StatReloader
  2339. INFO 2019-11-13 09:39:25,431 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2340. INFO 2019-11-13 09:39:26,303 autoreload 597 Watching for file changes with StatReloader
  2341. INFO 2019-11-13 09:39:26,970 autoreload 597 Watching for file changes with StatReloader
  2342. INFO 2019-11-13 09:39:31,533 autoreload 597 Watching for file changes with StatReloader
  2343. ERROR 2019-11-13 09:39:34,146 log 228 Internal Server Error: /expectedpoperation/
  2344. Traceback (most recent call last):
  2345. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2346. response = get_response(request)
  2347. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2348. response = self.process_exception_by_middleware(e, request)
  2349. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2350. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2351. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2352. return self.dispatch(request, *args, **kwargs)
  2353. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2354. return handler(request, *args, **kwargs)
  2355. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2356. return func(*args, **kwds)
  2357. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 408, in post
  2358. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  2359. IndexError: list index out of range
  2360. ERROR 2019-11-13 09:39:34,149 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86520
  2361. INFO 2019-11-13 09:40:22,867 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2362. INFO 2019-11-13 09:40:23,643 autoreload 597 Watching for file changes with StatReloader
  2363. INFO 2019-11-13 09:40:37,698 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py changed, reloading.
  2364. INFO 2019-11-13 09:40:38,412 autoreload 597 Watching for file changes with StatReloader
  2365. WARNING 2019-11-13 09:40:43,633 log 228 Forbidden: /expectedpoperation/
  2366. WARNING 2019-11-13 09:40:43,633 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 57
  2367. WARNING 2019-11-13 09:40:50,145 log 228 Forbidden: /expectedpoperation/
  2368. WARNING 2019-11-13 09:40:50,146 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 57
  2369. WARNING 2019-11-13 09:40:53,502 log 228 Forbidden: /expectedpoperation/
  2370. WARNING 2019-11-13 09:40:53,502 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 57
  2371. INFO 2019-11-13 09:48:22,677 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2372. INFO 2019-11-13 09:48:23,417 autoreload 597 Watching for file changes with StatReloader
  2373. INFO 2019-11-13 10:53:55,658 autoreload 597 Watching for file changes with StatReloader
  2374. INFO 2019-11-13 17:19:53,545 autoreload 597 Watching for file changes with StatReloader
  2375. WARNING 2019-11-13 17:20:02,164 log 228 Forbidden: /predictproceeds/
  2376. WARNING 2019-11-13 17:20:02,165 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 18
  2377. ERROR 2019-11-13 17:21:00,492 log 228 Internal Server Error: /predictproceeds/
  2378. Traceback (most recent call last):
  2379. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  2380. return self.cursor.execute(sql)
  2381. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  2382. return self.cursor.execute(sql, params)
  2383. pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  2384. The above exception was the direct cause of the following exception:
  2385. Traceback (most recent call last):
  2386. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2387. response = get_response(request)
  2388. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2389. response = self.process_exception_by_middleware(e, request)
  2390. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2391. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2392. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2393. return self.dispatch(request, *args, **kwargs)
  2394. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2395. return handler(request, *args, **kwargs)
  2396. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2397. return func(*args, **kwds)
  2398. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 577, in post
  2399. tp_CACC_NO = if_account(CACC_NO)
  2400. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\if_account.py", line 16, in if_account
  2401. IF_CACC_NO = cursor.execute(sql).fetchall()[0][0]
  2402. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  2403. return super().execute(sql, params)
  2404. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  2405. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  2406. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  2407. return executor(sql, params, many, context)
  2408. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  2409. return self.cursor.execute(sql, params)
  2410. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__
  2411. raise dj_exc_value.with_traceback(traceback) from exc_value
  2412. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  2413. return self.cursor.execute(sql)
  2414. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  2415. return self.cursor.execute(sql, params)
  2416. django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  2417. ERROR 2019-11-13 17:21:00,496 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 130318
  2418. INFO 2019-11-13 17:22:14,700 autoreload 597 Watching for file changes with StatReloader
  2419. ERROR 2019-11-13 17:22:20,255 log 228 Internal Server Error: /predictproceeds/
  2420. Traceback (most recent call last):
  2421. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  2422. return self.cursor.execute(sql)
  2423. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  2424. return self.cursor.execute(sql, params)
  2425. pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  2426. The above exception was the direct cause of the following exception:
  2427. Traceback (most recent call last):
  2428. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2429. response = get_response(request)
  2430. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2431. response = self.process_exception_by_middleware(e, request)
  2432. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2433. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2434. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2435. return self.dispatch(request, *args, **kwargs)
  2436. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2437. return handler(request, *args, **kwargs)
  2438. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2439. return func(*args, **kwds)
  2440. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 577, in post
  2441. tp_CACC_NO = if_account(CACC_NO)
  2442. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\if_account.py", line 16, in if_account
  2443. IF_CACC_NO = cursor.execute(sql).fetchall()[0][0]
  2444. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  2445. return super().execute(sql, params)
  2446. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  2447. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  2448. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  2449. return executor(sql, params, many, context)
  2450. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  2451. return self.cursor.execute(sql, params)
  2452. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__
  2453. raise dj_exc_value.with_traceback(traceback) from exc_value
  2454. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  2455. return self.cursor.execute(sql)
  2456. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  2457. return self.cursor.execute(sql, params)
  2458. django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  2459. ERROR 2019-11-13 17:22:20,257 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 130295
  2460. INFO 2019-11-13 17:23:09,092 autoreload 597 Watching for file changes with StatReloader
  2461. ERROR 2019-11-13 17:23:11,442 log 228 Internal Server Error: /predictproceeds/
  2462. Traceback (most recent call last):
  2463. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  2464. return self.cursor.execute(sql)
  2465. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  2466. return self.cursor.execute(sql, params)
  2467. pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  2468. The above exception was the direct cause of the following exception:
  2469. Traceback (most recent call last):
  2470. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2471. response = get_response(request)
  2472. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2473. response = self.process_exception_by_middleware(e, request)
  2474. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2475. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2476. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2477. return self.dispatch(request, *args, **kwargs)
  2478. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2479. return handler(request, *args, **kwargs)
  2480. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2481. return func(*args, **kwds)
  2482. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 577, in post
  2483. tp_CACC_NO = if_account(CACC_NO)
  2484. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\if_account.py", line 16, in if_account
  2485. IF_CACC_NO = cursor.execute(sql).fetchall()[0][0]
  2486. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  2487. return super().execute(sql, params)
  2488. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  2489. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  2490. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  2491. return executor(sql, params, many, context)
  2492. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  2493. return self.cursor.execute(sql, params)
  2494. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__
  2495. raise dj_exc_value.with_traceback(traceback) from exc_value
  2496. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  2497. return self.cursor.execute(sql)
  2498. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  2499. return self.cursor.execute(sql, params)
  2500. django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  2501. ERROR 2019-11-13 17:23:11,445 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 130319
  2502. INFO 2019-11-13 17:23:34,892 autoreload 597 Watching for file changes with StatReloader
  2503. ERROR 2019-11-13 17:23:38,103 log 228 Internal Server Error: /predictproceeds/
  2504. Traceback (most recent call last):
  2505. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  2506. return self.cursor.execute(sql)
  2507. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  2508. return self.cursor.execute(sql, params)
  2509. pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  2510. The above exception was the direct cause of the following exception:
  2511. Traceback (most recent call last):
  2512. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2513. response = get_response(request)
  2514. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2515. response = self.process_exception_by_middleware(e, request)
  2516. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2517. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2518. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2519. return self.dispatch(request, *args, **kwargs)
  2520. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2521. return handler(request, *args, **kwargs)
  2522. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2523. return func(*args, **kwds)
  2524. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 578, in post
  2525. tp_CACC_NO = if_account(CACC_NO)
  2526. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\if_account.py", line 16, in if_account
  2527. IF_CACC_NO = cursor.execute(sql).fetchall()[0][0]
  2528. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  2529. return super().execute(sql, params)
  2530. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  2531. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  2532. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  2533. return executor(sql, params, many, context)
  2534. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  2535. return self.cursor.execute(sql, params)
  2536. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__
  2537. raise dj_exc_value.with_traceback(traceback) from exc_value
  2538. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  2539. return self.cursor.execute(sql)
  2540. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  2541. return self.cursor.execute(sql, params)
  2542. django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  2543. ERROR 2019-11-13 17:23:38,107 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 130219
  2544. INFO 2019-11-13 17:24:38,806 autoreload 597 Watching for file changes with StatReloader
  2545. INFO 2019-11-13 17:24:49,548 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  2546. WARNING 2019-11-13 17:24:55,731 log 228 Forbidden: /predictproceeds/
  2547. WARNING 2019-11-13 17:24:55,732 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 24
  2548. WARNING 2019-11-13 17:25:36,526 log 228 Forbidden: /predictproceeds/
  2549. WARNING 2019-11-13 17:25:36,526 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 24
  2550. INFO 2019-11-13 17:26:25,765 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2551. INFO 2019-11-13 17:26:26,629 autoreload 597 Watching for file changes with StatReloader
  2552. WARNING 2019-11-13 17:26:33,797 log 228 Forbidden: /predictproceeds/
  2553. WARNING 2019-11-13 17:26:33,798 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 24
  2554. INFO 2019-11-13 17:27:04,469 autoreload 597 Watching for file changes with StatReloader
  2555. WARNING 2019-11-13 17:27:06,577 log 228 Forbidden: /predictproceeds/
  2556. WARNING 2019-11-13 17:27:06,578 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 24
  2557. INFO 2019-11-13 17:27:29,820 autoreload 597 Watching for file changes with StatReloader
  2558. WARNING 2019-11-13 17:27:43,234 log 228 Forbidden: /predictproceeds/
  2559. WARNING 2019-11-13 17:27:43,234 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 24
  2560. INFO 2019-11-13 17:28:10,919 autoreload 597 Watching for file changes with StatReloader
  2561. WARNING 2019-11-13 17:28:12,759 log 228 Forbidden: /predictproceeds/
  2562. WARNING 2019-11-13 17:28:12,760 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 24
  2563. INFO 2019-11-13 17:28:42,761 autoreload 597 Watching for file changes with StatReloader
  2564. WARNING 2019-11-13 17:28:44,046 log 228 Forbidden: /predictproceeds/
  2565. WARNING 2019-11-13 17:28:44,046 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 6
  2566. INFO 2019-11-13 17:29:46,435 autoreload 597 Watching for file changes with StatReloader
  2567. ERROR 2019-11-13 17:29:52,343 log 228 Internal Server Error: /predictproceeds/
  2568. Traceback (most recent call last):
  2569. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2570. response = get_response(request)
  2571. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2572. response = self.process_exception_by_middleware(e, request)
  2573. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2574. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2575. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2576. return self.dispatch(request, *args, **kwargs)
  2577. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2578. return handler(request, *args, **kwargs)
  2579. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2580. return func(*args, **kwds)
  2581. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 577, in post
  2582. tp_CACC_NO = if_account(CACC_NO)
  2583. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\if_account.py", line 16, in if_account
  2584. IF_CACC_NO = cursor.execute(sql).fetchall()[0][0]
  2585. IndexError: list index out of range
  2586. ERROR 2019-11-13 17:29:52,345 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 89037
  2587. INFO 2019-11-13 17:32:06,930 autoreload 597 Watching for file changes with StatReloader
  2588. ERROR 2019-11-13 17:32:09,457 log 228 Internal Server Error: /predictproceeds/
  2589. Traceback (most recent call last):
  2590. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2591. response = get_response(request)
  2592. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2593. response = self.process_exception_by_middleware(e, request)
  2594. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2595. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2596. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2597. return self.dispatch(request, *args, **kwargs)
  2598. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2599. return handler(request, *args, **kwargs)
  2600. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2601. return func(*args, **kwds)
  2602. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 579, in post
  2603. if int(tp_CACC_NO) == 1:
  2604. TypeError: int() argument must be a string, a bytes-like object or a number, not 'HttpResponseForbidden'
  2605. ERROR 2019-11-13 17:32:09,458 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 85490
  2606. INFO 2019-11-13 17:35:00,403 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2607. INFO 2019-11-13 17:35:01,384 autoreload 597 Watching for file changes with StatReloader
  2608. INFO 2019-11-13 17:35:19,514 autoreload 597 Watching for file changes with StatReloader
  2609. WARNING 2019-11-13 17:35:21,533 log 228 Forbidden: /predictproceeds/
  2610. WARNING 2019-11-13 17:35:21,533 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 36
  2611. INFO 2019-11-13 17:36:40,343 autoreload 597 Watching for file changes with StatReloader
  2612. WARNING 2019-11-13 17:36:43,378 log 228 Forbidden: /predictproceeds/
  2613. WARNING 2019-11-13 17:36:43,378 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 57
  2614. INFO 2019-11-13 17:38:25,760 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2615. INFO 2019-11-13 17:38:26,506 autoreload 597 Watching for file changes with StatReloader
  2616. INFO 2019-11-13 17:39:50,385 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2617. INFO 2019-11-13 17:39:51,280 autoreload 597 Watching for file changes with StatReloader
  2618. INFO 2019-11-13 17:42:52,983 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2619. INFO 2019-11-13 17:42:53,749 autoreload 597 Watching for file changes with StatReloader
  2620. INFO 2019-11-13 17:43:58,637 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2621. INFO 2019-11-13 17:43:59,349 autoreload 597 Watching for file changes with StatReloader
  2622. WARNING 2019-11-13 17:45:06,136 log 228 Forbidden: /predictproceeds/
  2623. WARNING 2019-11-13 17:45:06,136 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 24
  2624. WARNING 2019-11-13 17:45:11,257 log 228 Forbidden: /predictproceeds/
  2625. WARNING 2019-11-13 17:45:11,257 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 12
  2626. INFO 2019-11-13 17:45:49,168 autoreload 597 Watching for file changes with StatReloader
  2627. WARNING 2019-11-13 17:45:53,473 log 228 Forbidden: /predictproceeds/
  2628. WARNING 2019-11-13 17:45:53,474 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 27
  2629. INFO 2019-11-13 17:46:13,982 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  2630. INFO 2019-11-13 17:49:35,596 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2631. INFO 2019-11-13 17:49:36,369 autoreload 597 Watching for file changes with StatReloader
  2632. INFO 2019-11-13 17:50:46,707 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2633. INFO 2019-11-13 17:50:47,431 autoreload 597 Watching for file changes with StatReloader
  2634. INFO 2019-11-13 17:52:12,947 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2635. INFO 2019-11-13 17:52:13,978 autoreload 597 Watching for file changes with StatReloader
  2636. INFO 2019-11-13 17:52:48,112 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2637. INFO 2019-11-13 17:52:48,861 autoreload 597 Watching for file changes with StatReloader
  2638. INFO 2019-11-13 17:54:11,935 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2639. INFO 2019-11-13 17:54:12,647 autoreload 597 Watching for file changes with StatReloader
  2640. INFO 2019-11-13 17:55:46,458 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2641. INFO 2019-11-13 17:55:47,243 autoreload 597 Watching for file changes with StatReloader
  2642. INFO 2019-11-13 17:57:12,582 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2643. INFO 2019-11-13 17:57:13,413 autoreload 597 Watching for file changes with StatReloader
  2644. INFO 2019-11-13 17:57:32,256 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2645. INFO 2019-11-13 17:57:33,114 autoreload 597 Watching for file changes with StatReloader
  2646. INFO 2019-11-13 17:57:48,577 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2647. INFO 2019-11-13 17:57:49,452 autoreload 597 Watching for file changes with StatReloader
  2648. INFO 2019-11-13 17:58:55,373 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2649. INFO 2019-11-13 17:58:56,277 autoreload 597 Watching for file changes with StatReloader
  2650. INFO 2019-11-13 17:59:23,235 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2651. INFO 2019-11-13 17:59:23,984 autoreload 597 Watching for file changes with StatReloader
  2652. INFO 2019-11-13 17:59:53,278 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2653. INFO 2019-11-13 17:59:54,100 autoreload 597 Watching for file changes with StatReloader
  2654. INFO 2019-11-13 18:00:08,283 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2655. INFO 2019-11-13 18:00:09,221 autoreload 597 Watching for file changes with StatReloader
  2656. INFO 2019-11-13 18:00:39,483 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  2657. INFO 2019-11-13 18:00:40,291 autoreload 597 Watching for file changes with StatReloader
  2658. INFO 2019-11-13 18:04:22,766 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2659. INFO 2019-11-13 18:04:23,514 autoreload 597 Watching for file changes with StatReloader
  2660. INFO 2019-11-13 18:06:24,285 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2661. INFO 2019-11-13 18:06:25,056 autoreload 597 Watching for file changes with StatReloader
  2662. INFO 2019-11-13 18:06:35,952 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2663. INFO 2019-11-13 18:06:36,655 autoreload 597 Watching for file changes with StatReloader
  2664. INFO 2019-11-13 18:07:19,648 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2665. INFO 2019-11-13 18:07:20,475 autoreload 597 Watching for file changes with StatReloader
  2666. INFO 2019-11-13 18:07:46,318 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2667. INFO 2019-11-13 18:07:47,099 autoreload 597 Watching for file changes with StatReloader
  2668. INFO 2019-11-13 18:08:48,876 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2669. INFO 2019-11-13 18:08:49,649 autoreload 597 Watching for file changes with StatReloader
  2670. INFO 2019-11-13 18:08:56,934 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2671. INFO 2019-11-13 18:08:57,697 autoreload 597 Watching for file changes with StatReloader
  2672. INFO 2019-11-13 18:09:03,832 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2673. INFO 2019-11-13 18:09:04,820 autoreload 597 Watching for file changes with StatReloader
  2674. INFO 2019-11-13 18:09:47,769 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2675. INFO 2019-11-13 18:09:48,526 autoreload 597 Watching for file changes with StatReloader
  2676. INFO 2019-11-13 18:10:12,006 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2677. INFO 2019-11-13 18:10:12,793 autoreload 597 Watching for file changes with StatReloader
  2678. INFO 2019-11-13 18:11:27,584 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2679. INFO 2019-11-13 18:11:28,289 autoreload 597 Watching for file changes with StatReloader
  2680. INFO 2019-11-13 18:11:35,643 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2681. INFO 2019-11-13 18:11:36,433 autoreload 597 Watching for file changes with StatReloader
  2682. INFO 2019-11-13 18:11:41,513 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2683. INFO 2019-11-13 18:11:42,389 autoreload 597 Watching for file changes with StatReloader
  2684. INFO 2019-11-13 18:12:21,027 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2685. INFO 2019-11-13 18:12:21,826 autoreload 597 Watching for file changes with StatReloader
  2686. INFO 2019-11-13 18:14:26,644 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2687. INFO 2019-11-13 18:14:27,347 autoreload 597 Watching for file changes with StatReloader
  2688. INFO 2019-11-13 18:14:57,842 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2689. INFO 2019-11-13 18:14:58,712 autoreload 597 Watching for file changes with StatReloader
  2690. INFO 2019-11-13 18:15:15,229 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  2691. INFO 2019-11-13 18:15:15,943 autoreload 597 Watching for file changes with StatReloader
  2692. INFO 2019-11-13 18:42:32,705 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\cust_data.py changed, reloading.
  2693. INFO 2019-11-13 18:42:34,415 autoreload 597 Watching for file changes with StatReloader
  2694. WARNING 2019-11-13 18:42:52,932 log 228 Forbidden: /invoice/
  2695. WARNING 2019-11-13 18:42:52,933 basehttp 154 "GET /invoice/ HTTP/1.1" 403 27
  2696. WARNING 2019-11-13 18:42:53,029 log 228 Forbidden: /favicon.ico
  2697. WARNING 2019-11-13 18:42:53,030 basehttp 154 "GET /favicon.ico HTTP/1.1" 403 27
  2698. INFO 2019-11-13 18:43:12,968 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2699. INFO 2019-11-13 18:44:58,482 autoreload 597 Watching for file changes with StatReloader
  2700. INFO 2019-11-13 18:45:02,304 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2701. INFO 2019-11-13 18:48:31,372 autoreload 597 Watching for file changes with StatReloader
  2702. INFO 2019-11-13 18:48:33,913 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2703. INFO 2019-11-13 18:49:07,766 autoreload 597 Watching for file changes with StatReloader
  2704. INFO 2019-11-13 18:49:09,836 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2705. INFO 2019-11-13 18:58:19,421 autoreload 597 Watching for file changes with StatReloader
  2706. INFO 2019-11-13 18:58:22,912 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2707. INFO 2019-11-13 18:59:10,916 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2708. INFO 2019-11-13 19:00:27,128 autoreload 597 Watching for file changes with StatReloader
  2709. INFO 2019-11-13 19:00:37,873 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2710. INFO 2019-11-13 19:00:38,800 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2711. INFO 2019-11-13 19:02:06,829 autoreload 597 Watching for file changes with StatReloader
  2712. INFO 2019-11-13 19:02:38,274 autoreload 597 Watching for file changes with StatReloader
  2713. ERROR 2019-11-13 19:02:40,460 log 228 Internal Server Error: /invoice/
  2714. Traceback (most recent call last):
  2715. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2716. response = get_response(request)
  2717. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2718. response = self.process_exception_by_middleware(e, request)
  2719. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2720. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2721. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2722. return self.dispatch(request, *args, **kwargs)
  2723. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2724. return handler(request, *args, **kwargs)
  2725. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 24, in get
  2726. row_cus_no = customer_data(CUS_NO, CUS_NO_NAME, '1', datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'))
  2727. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\cust_data.py", line 19, in customer_data
  2728. """, [CUS_NO, CUS_NO_NAME,OBJ_ID,'ADMIN','ADMIN',DATE,DATE])
  2729. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  2730. return super().execute(sql, params)
  2731. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  2732. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  2733. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  2734. return executor(sql, params, many, context)
  2735. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  2736. return self.cursor.execute(sql, params)
  2737. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 532, in execute
  2738. sql = self.format_sql(sql, params)
  2739. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 500, in format_sql
  2740. sql = sql % tuple('?' * len(params))
  2741. TypeError: not all arguments converted during string formatting
  2742. ERROR 2019-11-13 19:02:40,462 basehttp 154 "GET /invoice/ HTTP/1.1" 500 114737
  2743. INFO 2019-11-13 19:03:26,982 autoreload 597 Watching for file changes with StatReloader
  2744. INFO 2019-11-13 19:03:31,714 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2745. INFO 2019-11-13 19:06:04,515 autoreload 597 Watching for file changes with StatReloader
  2746. INFO 2019-11-13 19:06:11,006 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2747. INFO 2019-11-13 19:07:40,635 autoreload 597 Watching for file changes with StatReloader
  2748. INFO 2019-11-13 19:07:43,300 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2749. INFO 2019-11-13 19:09:35,179 autoreload 597 Watching for file changes with StatReloader
  2750. INFO 2019-11-13 19:09:47,533 autoreload 597 Watching for file changes with StatReloader
  2751. ERROR 2019-11-13 19:09:50,761 log 228 Internal Server Error: /invoice/
  2752. Traceback (most recent call last):
  2753. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2754. response = get_response(request)
  2755. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  2756. response = self.process_exception_by_middleware(e, request)
  2757. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  2758. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2759. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  2760. return self.dispatch(request, *args, **kwargs)
  2761. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  2762. return handler(request, *args, **kwargs)
  2763. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 24, in get
  2764. row_cus_no = customer_data(CUS_NO, CUS_NO_NAME, 1, LZ_DD)
  2765. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\cust_data.py", line 18, in customer_data
  2766. """, [CUS_NO, CUS_NO_NAME,OBJ_ID,'ADMIN','ADMIN',DATE,DATE])
  2767. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  2768. return super().execute(sql, params)
  2769. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  2770. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  2771. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  2772. return executor(sql, params, many, context)
  2773. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  2774. return self.cursor.execute(sql, params)
  2775. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 532, in execute
  2776. sql = self.format_sql(sql, params)
  2777. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 500, in format_sql
  2778. sql = sql % tuple('?' * len(params))
  2779. TypeError: must be real number, not str
  2780. ERROR 2019-11-13 19:09:50,764 basehttp 154 "GET /invoice/ HTTP/1.1" 500 113610
  2781. INFO 2019-11-13 19:11:19,196 autoreload 597 Watching for file changes with StatReloader
  2782. INFO 2019-11-13 19:15:02,738 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\cust_data.py changed, reloading.
  2783. INFO 2019-11-13 19:15:03,437 autoreload 597 Watching for file changes with StatReloader
  2784. INFO 2019-11-13 19:15:26,707 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\cust_data.py changed, reloading.
  2785. INFO 2019-11-13 19:15:27,466 autoreload 597 Watching for file changes with StatReloader
  2786. INFO 2019-11-13 19:15:57,227 autoreload 597 Watching for file changes with StatReloader
  2787. INFO 2019-11-13 19:16:00,560 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2788. INFO 2019-11-13 19:17:13,294 autoreload 597 Watching for file changes with StatReloader
  2789. INFO 2019-11-13 19:17:16,532 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2790. INFO 2019-11-13 19:18:21,054 autoreload 597 Watching for file changes with StatReloader
  2791. INFO 2019-11-13 19:18:23,518 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2792. INFO 2019-11-13 19:19:14,678 autoreload 597 Watching for file changes with StatReloader
  2793. INFO 2019-11-13 19:19:17,173 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2794. INFO 2019-11-13 19:20:15,288 autoreload 597 Watching for file changes with StatReloader
  2795. INFO 2019-11-13 19:20:18,985 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2796. INFO 2019-11-13 19:21:27,225 autoreload 597 Watching for file changes with StatReloader
  2797. INFO 2019-11-13 19:21:29,538 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2798. INFO 2019-11-13 19:22:00,838 autoreload 597 Watching for file changes with StatReloader
  2799. INFO 2019-11-13 19:22:07,363 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2800. INFO 2019-11-13 19:22:54,528 autoreload 597 Watching for file changes with StatReloader
  2801. INFO 2019-11-13 19:23:03,198 autoreload 597 Watching for file changes with StatReloader
  2802. INFO 2019-11-13 19:23:21,085 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2803. INFO 2019-11-13 19:24:04,385 autoreload 597 Watching for file changes with StatReloader
  2804. INFO 2019-11-13 19:24:06,803 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2805. INFO 2019-11-13 19:24:32,423 autoreload 597 Watching for file changes with StatReloader
  2806. INFO 2019-11-13 19:24:35,946 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2807. INFO 2019-11-13 19:25:04,946 autoreload 597 Watching for file changes with StatReloader
  2808. INFO 2019-11-13 19:25:06,449 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2809. INFO 2019-11-13 19:25:31,040 autoreload 597 Watching for file changes with StatReloader
  2810. INFO 2019-11-13 19:25:36,463 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  2811. INFO 2019-11-13 19:26:06,113 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\cust_data.py changed, reloading.
  2812. INFO 2019-11-13 19:26:06,938 autoreload 597 Watching for file changes with StatReloader
  2813. =======
  2814. WARNING 2019-10-26 15:31:41,879 log 228 Forbidden: /invoice/
  2815. WARNING 2019-10-26 15:31:41,879 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39
  2816. INFO 2019-10-26 15:35:42,526 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  2817. WARNING 2019-10-26 15:35:46,076 log 228 Forbidden: /invoice/
  2818. WARNING 2019-10-26 15:35:46,076 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39
  2819. WARNING 2019-10-26 15:37:52,221 log 228 Forbidden: /invoice/
  2820. WARNING 2019-10-26 15:37:52,222 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39
  2821. WARNING 2019-10-26 15:39:56,569 log 228 Forbidden: /invoice/
  2822. WARNING 2019-10-26 15:39:56,570 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  2823. WARNING 2019-10-26 15:40:06,688 log 228 Forbidden: /invoice/
  2824. WARNING 2019-10-26 15:40:06,688 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39
  2825. INFO 2019-10-26 15:41:08,490 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  2826. WARNING 2019-10-26 15:43:52,321 log 228 Forbidden: /invoice/
  2827. WARNING 2019-10-26 15:43:52,321 basehttp 154 "POST /invoice/ HTTP/1.1" 403 39
  2828. INFO 2019-10-26 15:44:05,338 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  2829. INFO 2019-10-26 15:44:32,840 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  2830. WARNING 2019-10-26 15:44:36,934 log 228 Forbidden: /invoice/
  2831. WARNING 2019-10-26 15:44:36,934 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  2832. WARNING 2019-10-26 15:44:55,973 log 228 Forbidden: /invoice/
  2833. WARNING 2019-10-26 15:44:55,973 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  2834. WARNING 2019-10-26 15:45:16,193 log 228 Forbidden: /invoice/
  2835. WARNING 2019-10-26 15:45:16,194 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  2836. INFO 2019-10-26 15:45:32,802 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  2837. INFO 2019-10-26 15:45:40,839 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  2838. WARNING 2019-10-26 15:45:43,261 log 228 Forbidden: /invoice/
  2839. WARNING 2019-10-26 15:45:43,262 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  2840. INFO 2019-10-26 15:45:51,198 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  2841. INFO 2019-10-26 15:45:53,169 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  2842. INFO 2019-10-26 15:45:56,463 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  2843. INFO 2019-10-26 15:45:57,690 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  2844. INFO 2019-10-26 15:45:58,635 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  2845. INFO 2019-10-26 15:45:59,382 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  2846. WARNING 2019-10-26 15:46:39,703 log 228 Forbidden: /invoice/
  2847. WARNING 2019-10-26 15:46:39,704 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  2848. WARNING 2019-10-26 15:46:40,883 log 228 Forbidden: /invoice/
  2849. WARNING 2019-10-26 15:46:40,883 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  2850. INFO 2019-10-26 15:46:44,675 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  2851. INFO 2019-10-26 15:46:47,737 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  2852. WARNING 2019-10-26 15:46:48,995 log 228 Forbidden: /invoice/
  2853. WARNING 2019-10-26 15:46:48,996 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  2854. INFO 2019-10-26 15:46:52,536 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  2855. WARNING 2019-10-26 15:46:53,809 log 228 Forbidden: /invoice/
  2856. WARNING 2019-10-26 15:46:53,809 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  2857. WARNING 2019-10-26 15:46:55,169 log 228 Forbidden: /invoice/
  2858. WARNING 2019-10-26 15:46:55,169 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  2859. INFO 2019-10-26 15:47:22,946 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24
  2860. INFO 2019-10-26 15:47:25,783 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24
  2861. INFO 2019-10-26 15:47:46,364 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  2862. WARNING 2019-10-26 15:47:48,702 log 228 Forbidden: /invoice/
  2863. WARNING 2019-10-26 15:47:48,702 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  2864. INFO 2019-10-26 15:57:11,237 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  2865. WARNING 2019-10-26 15:57:13,888 log 228 Forbidden: /invoice/
  2866. WARNING 2019-10-26 15:57:13,889 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  2867. WARNING 2019-10-26 15:57:15,422 log 228 Forbidden: /invoice/
  2868. WARNING 2019-10-26 15:57:15,422 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  2869. INFO 2019-10-26 15:57:42,581 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24
  2870. INFO 2019-10-26 15:57:44,459 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24
  2871. INFO 2019-10-26 15:58:22,380 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  2872. INFO 2019-10-26 16:00:24,377 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24
  2873. INFO 2019-10-26 16:01:06,398 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  2874. WARNING 2019-10-26 16:01:08,375 log 228 Forbidden: /invoice/
  2875. WARNING 2019-10-26 16:01:08,376 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  2876. INFO 2019-10-26 16:01:41,337 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  2877. WARNING 2019-10-26 16:01:42,339 log 228 Forbidden: /invoice/
  2878. WARNING 2019-10-26 16:01:42,339 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  2879. WARNING 2019-10-26 16:01:55,226 log 228 Forbidden: /invoice/
  2880. WARNING 2019-10-26 16:01:55,227 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  2881. INFO 2019-10-26 16:10:06,833 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  2882. INFO 2019-10-26 16:11:23,976 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  2883. INFO 2019-10-26 16:11:51,199 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  2884. ERROR 2019-10-26 16:22:50,204 log 228 Internal Server Error: /paymentoperation/
  2885. Traceback (most recent call last):
  2886. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2887. response = get_response(request)
  2888. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  2889. response = self.process_exception_by_middleware(e, request)
  2890. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  2891. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2892. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  2893. return self.dispatch(request, *args, **kwargs)
  2894. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  2895. return handler(request, *args, **kwargs)
  2896. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 101, in post
  2897. ,datetime.datetime.strptime(RP_DD, '%Y-%m-%d'),RP_NO])
  2898. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  2899. return super().execute(sql, params)
  2900. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  2901. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  2902. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  2903. return executor(sql, params, many, context)
  2904. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  2905. return self.cursor.execute(sql, params)
  2906. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 542, in execute
  2907. sql = self.format_sql(sql, params)
  2908. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 510, in format_sql
  2909. sql = sql % tuple('?' * len(params))
  2910. TypeError: not all arguments converted during string formatting
  2911. ERROR 2019-10-26 16:22:50,206 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 500 110930
  2912. INFO 2019-10-26 16:24:33,700 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  2913. WARNING 2019-10-26 16:25:03,979 log 228 Forbidden: /invoice/
  2914. WARNING 2019-10-26 16:25:03,980 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 48
  2915. INFO 2019-10-26 16:25:17,685 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  2916. INFO 2019-10-26 16:25:20,901 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  2917. INFO 2019-10-26 16:25:27,596 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  2918. INFO 2019-10-26 16:27:43,951 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  2919. WARNING 2019-10-26 16:47:21,302 log 228 Forbidden: /paymentoperation/
  2920. WARNING 2019-10-26 16:47:21,302 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 15
  2921. WARNING 2019-10-26 16:49:22,716 log 228 Forbidden: /paymentoperation/
  2922. WARNING 2019-10-26 16:49:22,716 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 15
  2923. ERROR 2019-10-26 16:49:54,113 log 228 Internal Server Error: /paymentoperation/
  2924. Traceback (most recent call last):
  2925. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  2926. return self.cursor.execute(sql, params)
  2927. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  2928. return self.cursor.execute(sql, params)
  2929. pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  2930. The above exception was the direct cause of the following exception:
  2931. Traceback (most recent call last):
  2932. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2933. response = get_response(request)
  2934. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  2935. response = self.process_exception_by_middleware(e, request)
  2936. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  2937. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2938. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  2939. return self.dispatch(request, *args, **kwargs)
  2940. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  2941. return handler(request, *args, **kwargs)
  2942. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2943. return func(*args, **kwds)
  2944. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 180, in put
  2945. row_AMTN = cursor.execute("""SELECT AMTN_BC FROM TF_MON WHERE RP_NO=%s AND PR_ID='2'""", [RP_NO]).fetchall()[0][0]
  2946. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  2947. return super().execute(sql, params)
  2948. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  2949. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  2950. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  2951. return executor(sql, params, many, context)
  2952. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  2953. return self.cursor.execute(sql, params)
  2954. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  2955. raise dj_exc_value.with_traceback(traceback) from exc_value
  2956. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  2957. return self.cursor.execute(sql, params)
  2958. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  2959. return self.cursor.execute(sql, params)
  2960. django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  2961. ERROR 2019-10-26 16:49:54,117 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 500 126543
  2962. ERROR 2019-10-26 16:50:35,155 log 228 Internal Server Error: /paymentoperation/
  2963. Traceback (most recent call last):
  2964. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  2965. return self.cursor.execute(sql, params)
  2966. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  2967. return self.cursor.execute(sql, params)
  2968. pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  2969. The above exception was the direct cause of the following exception:
  2970. Traceback (most recent call last):
  2971. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  2972. response = get_response(request)
  2973. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  2974. response = self.process_exception_by_middleware(e, request)
  2975. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  2976. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  2977. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  2978. return self.dispatch(request, *args, **kwargs)
  2979. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  2980. return handler(request, *args, **kwargs)
  2981. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  2982. return func(*args, **kwds)
  2983. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 180, in put
  2984. row_AMTN = cursor.execute("""SELECT AMTN_BC FROM TF_MON WHERE RP_NO=%s AND PR_ID='2'""", [RP_NO]).fetchall()[0][0]
  2985. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  2986. return super().execute(sql, params)
  2987. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  2988. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  2989. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  2990. return executor(sql, params, many, context)
  2991. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  2992. return self.cursor.execute(sql, params)
  2993. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  2994. raise dj_exc_value.with_traceback(traceback) from exc_value
  2995. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  2996. return self.cursor.execute(sql, params)
  2997. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  2998. return self.cursor.execute(sql, params)
  2999. django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  3000. ERROR 2019-10-26 16:50:35,157 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 500 126546
  3001. ERROR 2019-10-26 16:51:00,696 log 228 Internal Server Error: /paymentoperation/
  3002. Traceback (most recent call last):
  3003. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3004. return self.cursor.execute(sql, params)
  3005. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3006. return self.cursor.execute(sql, params)
  3007. pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  3008. The above exception was the direct cause of the following exception:
  3009. Traceback (most recent call last):
  3010. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3011. response = get_response(request)
  3012. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3013. response = self.process_exception_by_middleware(e, request)
  3014. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3015. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3016. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3017. return self.dispatch(request, *args, **kwargs)
  3018. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3019. return handler(request, *args, **kwargs)
  3020. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3021. return func(*args, **kwds)
  3022. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 180, in put
  3023. row_AMTN = cursor.execute("""SELECT AMTN_BC FROM TF_MON WHERE RP_NO=%s AND PR_ID='2'""", [RP_NO]).fetchall()[0][0]
  3024. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  3025. return super().execute(sql, params)
  3026. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  3027. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  3028. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  3029. return executor(sql, params, many, context)
  3030. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3031. return self.cursor.execute(sql, params)
  3032. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  3033. raise dj_exc_value.with_traceback(traceback) from exc_value
  3034. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3035. return self.cursor.execute(sql, params)
  3036. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3037. return self.cursor.execute(sql, params)
  3038. django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'PR_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  3039. ERROR 2019-10-26 16:51:00,698 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 500 126546
  3040. WARNING 2019-10-26 17:00:46,983 log 228 Forbidden: /paymentoperation/
  3041. WARNING 2019-10-26 17:00:46,983 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21
  3042. WARNING 2019-10-26 17:00:59,051 log 228 Forbidden: /paymentoperation/
  3043. WARNING 2019-10-26 17:00:59,051 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21
  3044. WARNING 2019-10-26 17:01:35,345 log 228 Forbidden: /paymentoperation/
  3045. WARNING 2019-10-26 17:01:35,345 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21
  3046. WARNING 2019-10-26 17:02:54,095 log 228 Forbidden: /paymentoperation/
  3047. WARNING 2019-10-26 17:02:54,095 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 403 21
  3048. INFO 2019-10-26 17:03:37,523 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36
  3049. INFO 2019-10-26 17:04:55,512 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36
  3050. WARNING 2019-10-26 17:30:24,738 log 228 Forbidden: /paymentoperation/
  3051. WARNING 2019-10-26 17:30:24,739 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15
  3052. ERROR 2019-10-26 17:30:59,238 log 228 Internal Server Error: /paymentoperation/
  3053. Traceback (most recent call last):
  3054. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3055. return self.cursor.execute(sql, params)
  3056. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3057. return self.cursor.execute(sql, params)
  3058. pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  3059. The above exception was the direct cause of the following exception:
  3060. Traceback (most recent call last):
  3061. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3062. response = get_response(request)
  3063. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3064. response = self.process_exception_by_middleware(e, request)
  3065. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3066. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3067. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3068. return self.dispatch(request, *args, **kwargs)
  3069. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3070. return handler(request, *args, **kwargs)
  3071. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3072. return func(*args, **kwds)
  3073. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 297, in delete
  3074. cursor.execute("""DELETE FROM MF_BAC WHERE BB_NO=%s AND RP_ID='2'""", ['BT'+RP_NO[2::]])
  3075. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  3076. return super().execute(sql, params)
  3077. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  3078. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  3079. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  3080. return executor(sql, params, many, context)
  3081. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3082. return self.cursor.execute(sql, params)
  3083. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  3084. raise dj_exc_value.with_traceback(traceback) from exc_value
  3085. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3086. return self.cursor.execute(sql, params)
  3087. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3088. return self.cursor.execute(sql, params)
  3089. django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  3090. ERROR 2019-10-26 17:30:59,241 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 500 126111
  3091. INFO 2019-10-26 17:33:53,187 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  3092. WARNING 2019-10-26 17:34:25,873 log 228 Forbidden: /paymentoperation/
  3093. WARNING 2019-10-26 17:34:25,874 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 36
  3094. WARNING 2019-10-26 17:34:33,716 log 228 Forbidden: /paymentoperation/
  3095. WARNING 2019-10-26 17:34:33,716 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15
  3096. INFO 2019-10-26 17:39:32,014 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  3097. INFO 2019-10-26 17:39:50,505 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36
  3098. INFO 2019-10-26 17:40:11,226 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  3099. INFO 2019-10-26 17:48:51,576 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  3100. INFO 2019-10-26 17:49:04,517 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  3101. INFO 2019-10-26 17:49:13,853 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  3102. INFO 2019-10-26 17:49:17,183 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  3103. WARNING 2019-10-26 17:49:39,792 log 228 Forbidden: /paymentoperation/
  3104. WARNING 2019-10-26 17:49:39,792 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15
  3105. INFO 2019-10-26 18:28:14,669 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  3106. INFO 2019-10-26 18:28:18,274 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  3107. INFO 2019-10-26 18:28:21,150 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  3108. WARNING 2019-10-26 18:28:25,458 log 228 Forbidden: /paymentoperation/
  3109. WARNING 2019-10-26 18:28:25,458 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21
  3110. INFO 2019-10-26 18:30:04,306 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  3111. INFO 2019-10-26 18:30:19,015 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36
  3112. WARNING 2019-10-26 18:30:28,836 log 228 Forbidden: /paymentoperation/
  3113. WARNING 2019-10-26 18:30:28,837 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21
  3114. INFO 2019-10-26 18:30:38,718 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  3115. INFO 2019-10-26 18:31:02,819 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  3116. INFO 2019-10-26 18:35:00,176 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  3117. INFO 2019-10-26 18:35:06,199 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  3118. INFO 2019-10-26 18:35:09,065 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  3119. INFO 2019-10-26 18:35:32,737 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  3120. INFO 2019-10-26 18:35:38,682 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36
  3121. INFO 2019-10-26 18:35:48,661 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  3122. INFO 2019-10-26 18:35:55,766 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  3123. INFO 2019-10-28 09:04:08,436 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  3124. WARNING 2019-10-28 09:05:08,930 log 228 Forbidden: /expectedpoperation/
  3125. WARNING 2019-10-28 09:05:08,930 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 403 15
  3126. INFO 2019-10-28 09:05:19,111 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42
  3127. INFO 2019-10-28 09:14:12,133 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42
  3128. INFO 2019-10-28 09:23:44,854 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42
  3129. INFO 2019-10-28 09:24:13,707 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42
  3130. WARNING 2019-10-28 09:24:58,993 log 228 Forbidden: /expectedpoperation/
  3131. WARNING 2019-10-28 09:24:58,993 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 403 27
  3132. WARNING 2019-10-28 09:28:41,541 log 228 Forbidden: /expectedpoperation/
  3133. WARNING 2019-10-28 09:28:41,542 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 15
  3134. WARNING 2019-10-28 09:29:03,803 log 228 Forbidden: /expectedpoperation/
  3135. WARNING 2019-10-28 09:29:03,803 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 15
  3136. INFO 2019-10-28 09:30:24,164 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 200 45
  3137. WARNING 2019-10-28 09:34:09,682 log 228 Forbidden: /expectedpoperation/
  3138. WARNING 2019-10-28 09:34:09,682 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 27
  3139. INFO 2019-10-28 09:34:29,286 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  3140. INFO 2019-10-28 09:34:49,859 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42
  3141. WARNING 2019-10-28 09:35:20,642 log 228 Forbidden: /expectedpoperation/
  3142. WARNING 2019-10-28 09:35:20,643 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 33
  3143. WARNING 2019-10-28 09:35:37,100 log 228 Forbidden: /expectedpoperation/
  3144. WARNING 2019-10-28 09:35:37,101 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 33
  3145. INFO 2019-10-28 09:39:00,461 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 200 45
  3146. INFO 2019-10-28 09:39:06,134 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  3147. INFO 2019-10-28 09:39:09,613 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36
  3148. INFO 2019-10-28 09:39:34,619 basehttp 154 "PUT /paymentoperation/ HTTP/1.1" 200 36
  3149. INFO 2019-10-28 09:39:56,474 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  3150. INFO 2019-10-28 09:40:00,198 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42
  3151. WARNING 2019-10-28 09:40:35,489 log 228 Forbidden: /expectedpoperation/
  3152. WARNING 2019-10-28 09:40:35,490 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 33
  3153. INFO 2019-10-28 09:40:42,079 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 200 45
  3154. WARNING 2019-10-28 13:20:21,682 log 228 Forbidden: /expectedpoperation/
  3155. WARNING 2019-10-28 13:20:21,682 basehttp 154 "DELETE /expectedpoperation/ HTTP/1.1" 403 24
  3156. INFO 2019-10-28 13:20:26,561 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  3157. WARNING 2019-10-28 13:20:30,181 log 228 Forbidden: /invoice/
  3158. WARNING 2019-10-28 13:20:30,182 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 48
  3159. WARNING 2019-10-28 13:20:47,121 log 228 Forbidden: /paymentoperation/
  3160. WARNING 2019-10-28 13:20:47,122 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 403 15
  3161. INFO 2019-10-28 13:20:55,254 basehttp 154 "DELETE /paymentoperation/ HTTP/1.1" 200 39
  3162. INFO 2019-10-28 13:20:58,635 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  3163. INFO 2019-10-28 13:21:04,731 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  3164. INFO 2019-10-28 13:27:56,959 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  3165. WARNING 2019-10-28 13:27:58,680 log 228 Forbidden: /expectedpoperation/
  3166. WARNING 2019-10-28 13:27:58,680 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24
  3167. INFO 2019-10-28 13:28:21,935 basehttp 154 "PUT /expectedpoperation/ HTTP/1.1" 200 42
  3168. INFO 2019-10-28 13:34:02,390 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  3169. INFO 2019-10-28 13:35:23,918 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 200 55
  3170. INFO 2019-10-28 15:36:48,198 basehttp 154 "PUT /expectedptoperation/ HTTP/1.1" 200 54
  3171. INFO 2019-10-28 15:41:44,910 basehttp 154 "DELETE /expectedptoperation/ HTTP/1.1" 200 57
  3172. WARNING 2019-10-28 15:41:47,353 log 228 Forbidden: /expectedptoperation/
  3173. WARNING 2019-10-28 15:41:47,353 basehttp 154 "DELETE /expectedptoperation/ HTTP/1.1" 403 15
  3174. ERROR 2019-10-28 17:13:21,613 log 228 Internal Server Error: /invoice/
  3175. Traceback (most recent call last):
  3176. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner
  3177. return func(*args, **kwargs)
  3178. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall
  3179. return self.format_rows(self.cursor.fetchall())
  3180. pyodbc.ProgrammingError: No results. Previous SQL was not a query.
  3181. The above exception was the direct cause of the following exception:
  3182. Traceback (most recent call last):
  3183. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3184. response = get_response(request)
  3185. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3186. response = self.process_exception_by_middleware(e, request)
  3187. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3188. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3189. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3190. return self.dispatch(request, *args, **kwargs)
  3191. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3192. return handler(request, *args, **kwargs)
  3193. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 25, in get
  3194. row = cursor.fetchall()
  3195. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner
  3196. return func(*args, **kwargs)
  3197. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  3198. raise dj_exc_value.with_traceback(traceback) from exc_value
  3199. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner
  3200. return func(*args, **kwargs)
  3201. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall
  3202. return self.format_rows(self.cursor.fetchall())
  3203. django.db.utils.ProgrammingError: No results. Previous SQL was not a query.
  3204. ERROR 2019-10-28 17:13:21,617 basehttp 154 "GET /invoice/ HTTP/1.1" 500 103126
  3205. ERROR 2019-10-28 17:14:09,053 log 228 Internal Server Error: /invoice/
  3206. Traceback (most recent call last):
  3207. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner
  3208. return func(*args, **kwargs)
  3209. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall
  3210. return self.format_rows(self.cursor.fetchall())
  3211. pyodbc.ProgrammingError: No results. Previous SQL was not a query.
  3212. The above exception was the direct cause of the following exception:
  3213. Traceback (most recent call last):
  3214. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3215. response = get_response(request)
  3216. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3217. response = self.process_exception_by_middleware(e, request)
  3218. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3219. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3220. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3221. return self.dispatch(request, *args, **kwargs)
  3222. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3223. return handler(request, *args, **kwargs)
  3224. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 26, in get
  3225. row = cursor.fetchall()
  3226. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner
  3227. return func(*args, **kwargs)
  3228. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  3229. raise dj_exc_value.with_traceback(traceback) from exc_value
  3230. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 96, in inner
  3231. return func(*args, **kwargs)
  3232. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 594, in fetchall
  3233. return self.format_rows(self.cursor.fetchall())
  3234. django.db.utils.ProgrammingError: No results. Previous SQL was not a query.
  3235. ERROR 2019-10-28 17:14:09,055 basehttp 154 "GET /invoice/ HTTP/1.1" 500 103121
  3236. INFO 2019-10-28 17:14:37,315 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  3237. INFO 2019-10-28 17:18:40,853 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  3238. INFO 2019-10-28 17:46:37,114 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  3239. INFO 2019-10-28 17:47:59,023 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  3240. INFO 2019-10-28 17:48:24,002 basehttp 154 "GET /invoice/ HTTP/1.1" 200 10
  3241. INFO 2019-10-29 17:17:19,858 basehttp 154 "GET /sales HTTP/1.1" 301 0
  3242. INFO 2019-10-29 17:17:19,893 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  3243. WARNING 2019-10-29 17:17:19,955 log 228 Not Found: /favicon.ico
  3244. WARNING 2019-10-29 17:17:19,956 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 2790
  3245. INFO 2019-10-30 08:53:29,962 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  3246. WARNING 2019-10-30 09:01:13,540 log 228 Forbidden: /sales/
  3247. WARNING 2019-10-30 09:01:13,540 basehttp 154 "POST /sales/ HTTP/1.1" 403 51
  3248. ERROR 2019-10-30 09:01:22,412 log 228 Internal Server Error: /sales/
  3249. Traceback (most recent call last):
  3250. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3251. response = get_response(request)
  3252. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3253. response = self.process_exception_by_middleware(e, request)
  3254. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3255. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3256. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3257. return self.dispatch(request, *args, **kwargs)
  3258. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3259. return handler(request, *args, **kwargs)
  3260. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3261. return func(*args, **kwds)
  3262. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 82, in post
  3263. INV_NO,datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'),datetime.datetime.strptime(LZ_DD, '%Y-%m-%d')])
  3264. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  3265. return super().execute(sql, params)
  3266. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  3267. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  3268. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  3269. return executor(sql, params, many, context)
  3270. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3271. return self.cursor.execute(sql, params)
  3272. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 542, in execute
  3273. sql = self.format_sql(sql, params)
  3274. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 510, in format_sql
  3275. sql = sql % tuple('?' * len(params))
  3276. TypeError: not all arguments converted during string formatting
  3277. ERROR 2019-10-30 09:01:22,414 basehttp 154 "POST /sales/ HTTP/1.1" 500 117057
  3278. ERROR 2019-10-30 09:06:26,281 log 228 Internal Server Error: /sales/
  3279. Traceback (most recent call last):
  3280. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3281. response = get_response(request)
  3282. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 137, in _get_response
  3283. "returned None instead." % (callback.__module__, view_name)
  3284. ValueError: The view salesinvoice.views.salesView didn't return an HttpResponse object. It returned None instead.
  3285. ERROR 2019-10-30 09:06:26,284 basehttp 154 "POST /sales/ HTTP/1.1" 500 61515
  3286. ERROR 2019-10-30 09:08:20,019 log 228 Internal Server Error: /sales/
  3287. Traceback (most recent call last):
  3288. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3289. return self.cursor.execute(sql, params)
  3290. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3291. return self.cursor.execute(sql, params)
  3292. pyodbc.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)")
  3293. The above exception was the direct cause of the following exception:
  3294. Traceback (most recent call last):
  3295. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3296. response = get_response(request)
  3297. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3298. response = self.process_exception_by_middleware(e, request)
  3299. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3300. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3301. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3302. return self.dispatch(request, *args, **kwargs)
  3303. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3304. return handler(request, *args, **kwargs)
  3305. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3306. return func(*args, **kwds)
  3307. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 71, in post
  3308. datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'),AMT])
  3309. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  3310. return super().execute(sql, params)
  3311. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  3312. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  3313. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  3314. return executor(sql, params, many, context)
  3315. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3316. return self.cursor.execute(sql, params)
  3317. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  3318. raise dj_exc_value.with_traceback(traceback) from exc_value
  3319. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3320. return self.cursor.execute(sql, params)
  3321. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3322. return self.cursor.execute(sql, params)
  3323. django.db.utils.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)")
  3324. ERROR 2019-10-30 09:08:20,023 basehttp 154 "POST /sales/ HTTP/1.1" 500 133988
  3325. WARNING 2019-10-30 09:09:07,909 log 228 Forbidden: /sales/
  3326. WARNING 2019-10-30 09:09:07,909 basehttp 154 "POST /sales/ HTTP/1.1" 403 27
  3327. INFO 2019-10-30 09:10:51,862 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3328. INFO 2019-10-30 09:34:16,513 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  3329. ERROR 2019-10-30 09:40:09,694 log 228 Internal Server Error: /sales/
  3330. Traceback (most recent call last):
  3331. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3332. return self.cursor.execute(sql, params)
  3333. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3334. return self.cursor.execute(sql, params)
  3335. pyodbc.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__TF_LZ'。不能在对象 'dbo.TF_LZ' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)")
  3336. The above exception was the direct cause of the following exception:
  3337. Traceback (most recent call last):
  3338. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3339. response = get_response(request)
  3340. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3341. response = self.process_exception_by_middleware(e, request)
  3342. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3343. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3344. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3345. return self.dispatch(request, *args, **kwargs)
  3346. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3347. return handler(request, *args, **kwargs)
  3348. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3349. return func(*args, **kwds)
  3350. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 90, in post
  3351. ('LZ',%s,1,%s,%s,%s,'AQ001',1,%s,5,1,1,'SA',1,'服務費用',%s,1,1)""",[ZL_NO, 'SA' + ZL_NO[2::],AMT,AMT,datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'), CUS_NO])
  3352. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  3353. return super().execute(sql, params)
  3354. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  3355. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  3356. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  3357. return executor(sql, params, many, context)
  3358. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3359. return self.cursor.execute(sql, params)
  3360. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  3361. raise dj_exc_value.with_traceback(traceback) from exc_value
  3362. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3363. return self.cursor.execute(sql, params)
  3364. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3365. return self.cursor.execute(sql, params)
  3366. django.db.utils.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__TF_LZ'。不能在对象 'dbo.TF_LZ' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)")
  3367. ERROR 2019-10-30 09:40:09,698 basehttp 154 "POST /sales/ HTTP/1.1" 500 133487
  3368. INFO 2019-10-30 09:40:39,938 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3369. INFO 2019-10-30 09:41:21,053 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3370. INFO 2019-10-30 09:45:39,565 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3371. INFO 2019-10-30 09:56:47,597 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3372. INFO 2019-10-30 09:58:19,521 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3373. INFO 2019-10-30 10:01:37,714 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3374. WARNING 2019-10-30 10:15:39,303 log 228 Forbidden: /sales/
  3375. WARNING 2019-10-30 10:15:39,303 basehttp 154 "PUT /sales/ HTTP/1.1" 403 51
  3376. INFO 2019-10-30 10:15:47,263 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60
  3377. ERROR 2019-10-30 10:26:49,687 log 228 Internal Server Error: /invoice/
  3378. Traceback (most recent call last):
  3379. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3380. response = get_response(request)
  3381. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3382. response = self.process_exception_by_middleware(e, request)
  3383. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3384. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3385. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3386. return self.dispatch(request, *args, **kwargs)
  3387. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3388. return handler(request, *args, **kwargs)
  3389. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3390. return func(*args, **kwds)
  3391. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 335, in delete
  3392. req_data = json.loads(request.body.decode())
  3393. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  3394. return _default_decoder.decode(s)
  3395. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  3396. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  3397. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  3398. raise JSONDecodeError("Expecting value", s, err.value) from None
  3399. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  3400. ERROR 2019-10-30 10:26:49,691 basehttp 154 "DELETE /invoice/?ZL_NO=LZS9A300001&ZHANG_ID=3 HTTP/1.1" 500 97827
  3401. WARNING 2019-10-30 10:28:36,918 base 93 Method Not Allowed (DELETE): /sales/
  3402. WARNING 2019-10-30 10:28:36,918 log 228 Method Not Allowed: /sales/
  3403. WARNING 2019-10-30 10:28:36,918 basehttp 154 "DELETE /sales/ HTTP/1.1" 405 0
  3404. WARNING 2019-10-30 10:29:14,406 log 228 Forbidden: /sales/
  3405. WARNING 2019-10-30 10:29:14,406 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21
  3406. INFO 2019-10-30 10:30:23,997 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 60
  3407. INFO 2019-10-30 10:30:57,516 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 60
  3408. WARNING 2019-10-30 10:31:36,845 log 228 Forbidden: /sales/
  3409. WARNING 2019-10-30 10:31:36,846 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21
  3410. WARNING 2019-10-30 10:31:41,341 log 228 Forbidden: /sales/
  3411. WARNING 2019-10-30 10:31:41,341 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21
  3412. ERROR 2019-10-30 10:32:19,311 log 228 Internal Server Error: /sales/
  3413. Traceback (most recent call last):
  3414. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3415. return self.cursor.execute(sql, params)
  3416. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3417. return self.cursor.execute(sql, params)
  3418. pyodbc.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)")
  3419. The above exception was the direct cause of the following exception:
  3420. Traceback (most recent call last):
  3421. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3422. response = get_response(request)
  3423. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3424. response = self.process_exception_by_middleware(e, request)
  3425. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3426. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3427. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3428. return self.dispatch(request, *args, **kwargs)
  3429. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3430. return handler(request, *args, **kwargs)
  3431. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3432. return func(*args, **kwds)
  3433. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 75, in post
  3434. datetime.datetime.strptime(LZ_DD, '%Y-%m-%d'),AMT])
  3435. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  3436. return super().execute(sql, params)
  3437. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  3438. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  3439. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  3440. return executor(sql, params, many, context)
  3441. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3442. return self.cursor.execute(sql, params)
  3443. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  3444. raise dj_exc_value.with_traceback(traceback) from exc_value
  3445. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3446. return self.cursor.execute(sql, params)
  3447. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3448. return self.cursor.execute(sql, params)
  3449. django.db.utils.IntegrityError: ('23000', "[23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]违反了 PRIMARY KEY 约束 'PK__MF_PSS'。不能在对象 'dbo.MF_PSS' 中插入重复键。 (2627) (SQLExecDirectW); [23000] [Microsoft][SQL Server Native Client 10.0][SQL Server]语句已终止。 (3621)")
  3450. ERROR 2019-10-30 10:32:19,313 basehttp 154 "POST /sales/ HTTP/1.1" 500 133997
  3451. INFO 2019-10-30 10:33:03,845 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3452. INFO 2019-10-30 10:33:20,400 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60
  3453. INFO 2019-10-30 10:33:29,120 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  3454. INFO 2019-10-30 10:34:34,157 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3455. INFO 2019-10-30 10:34:36,603 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60
  3456. INFO 2019-10-30 10:34:39,263 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  3457. INFO 2019-10-30 10:34:41,980 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3458. INFO 2019-10-30 10:56:56,320 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  3459. WARNING 2019-10-30 10:56:58,661 log 228 Forbidden: /sales/
  3460. WARNING 2019-10-30 10:56:58,662 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21
  3461. INFO 2019-10-30 10:57:02,371 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3462. INFO 2019-10-30 10:57:05,316 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60
  3463. INFO 2019-10-30 10:57:08,645 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  3464. WARNING 2019-10-30 10:57:09,693 log 228 Forbidden: /sales/
  3465. WARNING 2019-10-30 10:57:09,693 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21
  3466. INFO 2019-10-30 11:02:59,771 basehttp 154 "GET /proceeds HTTP/1.1" 301 0
  3467. INFO 2019-10-30 11:02:59,783 basehttp 154 "GET /proceeds/ HTTP/1.1" 200 48
  3468. WARNING 2019-10-30 11:36:24,589 log 228 Forbidden: /invoice/
  3469. WARNING 2019-10-30 11:36:24,590 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  3470. INFO 2019-10-30 11:37:26,909 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3471. ERROR 2019-10-30 11:46:51,278 log 228 Internal Server Error: /proceeds
  3472. Traceback (most recent call last):
  3473. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3474. response = get_response(request)
  3475. File "C:\Users\12446\Envs\awj\lib\site-packages\django\utils\deprecation.py", line 90, in __call__
  3476. response = self.process_request(request)
  3477. File "C:\Users\12446\Envs\awj\lib\site-packages\django\middleware\common.py", line 53, in process_request
  3478. path = self.get_full_path_with_slash(request)
  3479. File "C:\Users\12446\Envs\awj\lib\site-packages\django\middleware\common.py", line 93, in get_full_path_with_slash
  3480. 'url': request.get_host() + new_path,
  3481. RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8000/proceeds/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
  3482. ERROR 2019-10-30 11:46:51,279 basehttp 154 "POST /proceeds HTTP/1.1" 500 68450
  3483. ERROR 2019-10-30 11:47:31,389 log 228 Internal Server Error: /proceeds/
  3484. Traceback (most recent call last):
  3485. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3486. response = get_response(request)
  3487. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3488. response = self.process_exception_by_middleware(e, request)
  3489. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3490. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3491. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3492. return self.dispatch(request, *args, **kwargs)
  3493. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3494. return handler(request, *args, **kwargs)
  3495. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3496. return func(*args, **kwds)
  3497. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 341, in post
  3498. row_AMT = cursor.execute("SELECT CAST(ISNULL(AMT,0) AS INT ),BIL_NO FROM MF_ARP WHERE BIL_NO=%s",[MF_LZ1]).fetchall()[0][0]
  3499. IndexError: list index out of range
  3500. ERROR 2019-10-30 11:47:31,391 basehttp 154 "POST /proceeds/ HTTP/1.1" 500 85496
  3501. INFO 2019-10-30 13:22:08,693 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  3502. INFO 2019-10-30 13:42:52,852 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  3503. INFO 2019-10-30 13:48:15,671 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  3504. INFO 2019-10-30 13:51:34,234 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  3505. INFO 2019-10-30 13:54:59,562 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  3506. INFO 2019-10-30 13:58:43,435 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  3507. INFO 2019-10-30 14:28:41,733 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  3508. INFO 2019-10-30 14:30:16,253 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  3509. INFO 2019-10-30 14:30:17,254 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  3510. WARNING 2019-10-30 14:33:00,957 log 228 Forbidden: /proceeds/
  3511. WARNING 2019-10-30 14:33:00,958 basehttp 154 "PUT /proceeds/ HTTP/1.1" 403 21
  3512. INFO 2019-10-30 14:33:29,952 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  3513. ERROR 2019-10-30 14:44:53,711 log 228 Internal Server Error: /proceeds/
  3514. Traceback (most recent call last):
  3515. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3516. response = get_response(request)
  3517. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3518. response = self.process_exception_by_middleware(e, request)
  3519. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3520. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3521. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3522. return self.dispatch(request, *args, **kwargs)
  3523. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3524. return handler(request, *args, **kwargs)
  3525. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3526. return func(*args, **kwds)
  3527. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 453, in delete
  3528. row_AMTN_MF_ARP = cursor.execute("""SELECT AMTN FROM MF_ARP WHERE BIL_NO=%s""", [MF_LZ1]).fetchall()[0][0]
  3529. IndexError: list index out of range
  3530. ERROR 2019-10-30 14:44:53,712 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 500 83376
  3531. ERROR 2019-10-30 14:45:59,949 log 228 Internal Server Error: /proceeds/
  3532. Traceback (most recent call last):
  3533. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3534. response = get_response(request)
  3535. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3536. response = self.process_exception_by_middleware(e, request)
  3537. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3538. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3539. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3540. return self.dispatch(request, *args, **kwargs)
  3541. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3542. return handler(request, *args, **kwargs)
  3543. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3544. return func(*args, **kwds)
  3545. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 453, in delete
  3546. row_AMTN_MF_ARP = cursor.execute("""SELECT AMTN FROM MF_ARP WHERE BIL_NO=%s""", [MF_LZ1]).fetchall()[0][0]
  3547. IndexError: list index out of range
  3548. ERROR 2019-10-30 14:45:59,951 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 500 83376
  3549. INFO 2019-10-30 14:47:40,695 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51
  3550. INFO 2019-10-30 14:48:14,594 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  3551. INFO 2019-10-30 14:48:20,519 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3552. INFO 2019-10-30 14:48:27,205 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  3553. INFO 2019-10-30 14:49:02,467 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  3554. INFO 2019-10-30 14:49:05,827 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51
  3555. INFO 2019-10-30 14:51:28,576 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  3556. INFO 2019-10-30 14:51:31,576 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3557. INFO 2019-10-30 14:51:33,701 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  3558. INFO 2019-10-30 14:51:37,598 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  3559. INFO 2019-10-30 14:56:00,429 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51
  3560. WARNING 2019-10-30 15:01:11,277 log 228 Forbidden: /proceeds/
  3561. WARNING 2019-10-30 15:01:11,277 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 403 21
  3562. INFO 2019-10-30 15:01:14,914 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  3563. INFO 2019-10-30 15:01:18,717 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3564. INFO 2019-10-30 15:01:23,694 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  3565. INFO 2019-10-30 15:01:27,030 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  3566. INFO 2019-10-30 15:01:32,025 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51
  3567. INFO 2019-10-30 16:11:57,129 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  3568. INFO 2019-10-30 18:00:39,949 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60
  3569. ERROR 2019-10-30 18:08:10,643 log 228 Internal Server Error: /predictproceeds/
  3570. Traceback (most recent call last):
  3571. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3572. return self.cursor.execute(sql, params)
  3573. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3574. return self.cursor.execute(sql, params)
  3575. pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  3576. The above exception was the direct cause of the following exception:
  3577. Traceback (most recent call last):
  3578. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3579. response = get_response(request)
  3580. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3581. response = self.process_exception_by_middleware(e, request)
  3582. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3583. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3584. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3585. return self.dispatch(request, *args, **kwargs)
  3586. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3587. return handler(request, *args, **kwargs)
  3588. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3589. return func(*args, **kwds)
  3590. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 626, in delete
  3591. cursor.execute("""DELETE FROM MF_BAC WHERE BB_NO=%s AND RP_ID='2'""", ['BT' + RP_NO[2::]])
  3592. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  3593. return super().execute(sql, params)
  3594. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  3595. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  3596. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  3597. return executor(sql, params, many, context)
  3598. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3599. return self.cursor.execute(sql, params)
  3600. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  3601. raise dj_exc_value.with_traceback(traceback) from exc_value
  3602. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3603. return self.cursor.execute(sql, params)
  3604. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3605. return self.cursor.execute(sql, params)
  3606. django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  3607. ERROR 2019-10-30 18:08:10,646 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 500 125242
  3608. ERROR 2019-10-30 18:08:34,925 log 228 Internal Server Error: /predictproceeds/
  3609. Traceback (most recent call last):
  3610. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3611. return self.cursor.execute(sql, params)
  3612. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3613. return self.cursor.execute(sql, params)
  3614. pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  3615. The above exception was the direct cause of the following exception:
  3616. Traceback (most recent call last):
  3617. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3618. response = get_response(request)
  3619. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3620. response = self.process_exception_by_middleware(e, request)
  3621. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3622. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3623. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3624. return self.dispatch(request, *args, **kwargs)
  3625. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3626. return handler(request, *args, **kwargs)
  3627. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3628. return func(*args, **kwds)
  3629. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 626, in delete
  3630. cursor.execute("""DELETE FROM MF_BAC WHERE BB_NO=%s AND RP_ID='2'""", ['BT' + RP_NO[2::]])
  3631. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  3632. return super().execute(sql, params)
  3633. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  3634. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  3635. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  3636. return executor(sql, params, many, context)
  3637. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3638. return self.cursor.execute(sql, params)
  3639. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  3640. raise dj_exc_value.with_traceback(traceback) from exc_value
  3641. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3642. return self.cursor.execute(sql, params)
  3643. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3644. return self.cursor.execute(sql, params)
  3645. django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'RP_ID' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  3646. ERROR 2019-10-30 18:08:34,928 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 500 125223
  3647. INFO 2019-10-30 18:09:15,961 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  3648. INFO 2019-10-30 18:17:25,623 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63
  3649. INFO 2019-10-30 18:21:25,330 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  3650. INFO 2019-10-30 18:21:37,718 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60
  3651. INFO 2019-10-30 18:21:49,575 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63
  3652. INFO 2019-10-30 18:46:52,323 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  3653. INFO 2019-10-30 18:49:24,957 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  3654. INFO 2019-10-30 18:52:07,282 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  3655. INFO 2019-10-30 18:54:11,644 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  3656. INFO 2019-10-30 18:54:19,095 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  3657. INFO 2019-10-30 18:55:30,664 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  3658. INFO 2019-10-30 18:56:07,419 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  3659. INFO 2019-10-30 18:56:39,652 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  3660. WARNING 2019-10-30 18:56:57,110 log 228 Forbidden: /predictproceeds/
  3661. WARNING 2019-10-30 18:56:57,110 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21
  3662. INFO 2019-10-30 18:57:26,353 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  3663. INFO 2019-10-30 18:57:44,762 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  3664. INFO 2019-10-30 18:58:17,613 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  3665. INFO 2019-10-30 18:58:46,677 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  3666. WARNING 2019-10-30 18:59:32,970 log 228 Forbidden: /predictproceeds/
  3667. WARNING 2019-10-30 18:59:32,971 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21
  3668. ERROR 2019-10-30 19:03:56,102 log 228 Internal Server Error: /predictproceeds/
  3669. Traceback (most recent call last):
  3670. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3671. response = get_response(request)
  3672. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 19, in inner
  3673. print(name)
  3674. NameError: name 'name' is not defined
  3675. ERROR 2019-10-30 19:03:56,103 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 500 58158
  3676. INFO 2019-10-30 19:04:16,724 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  3677. WARNING 2019-10-30 19:04:51,537 log 228 Forbidden: /predictproceeds/
  3678. WARNING 2019-10-30 19:04:51,537 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21
  3679. WARNING 2019-10-30 19:05:54,675 log 228 Forbidden: /predictproceeds/
  3680. WARNING 2019-10-30 19:05:54,676 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21
  3681. WARNING 2019-10-31 11:07:56,865 log 228 Forbidden: /predictproceeds/
  3682. WARNING 2019-10-31 11:07:56,866 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 403 21
  3683. INFO 2019-10-31 11:08:37,578 basehttp 154 "GET /predictproceeds/ HTTP/1.1" 200 48
  3684. INFO 2019-10-31 11:29:48,607 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  3685. INFO 2019-10-31 11:34:16,468 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3686. INFO 2019-10-31 11:34:38,641 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3687. ERROR 2019-10-31 11:36:32,992 log 228 Internal Server Error: /predictproceeds/
  3688. Traceback (most recent call last):
  3689. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3690. response = get_response(request)
  3691. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3692. response = self.process_exception_by_middleware(e, request)
  3693. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3694. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3695. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3696. return self.dispatch(request, *args, **kwargs)
  3697. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3698. return handler(request, *args, **kwargs)
  3699. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3700. return func(*args, **kwds)
  3701. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 512, in post
  3702. row_usr = usr_data(USR, USR_NAME, datetime.datetime.strptime(RP_DD, '%Y-%m-%d'))
  3703. TypeError: strptime() argument 1 must be str, not None
  3704. ERROR 2019-10-31 11:36:32,995 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 500 83363
  3705. ERROR 2019-10-31 11:39:07,545 log 228 Internal Server Error: /predictpayment/
  3706. Traceback (most recent call last):
  3707. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3708. response = get_response(request)
  3709. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3710. response = self.process_exception_by_middleware(e, request)
  3711. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3712. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3713. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3714. return self.dispatch(request, *args, **kwargs)
  3715. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3716. return handler(request, *args, **kwargs)
  3717. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3718. return func(*args, **kwds)
  3719. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 702, in post
  3720. yf_sum =round(yf_sum + cursor.execute("""SELECT AMTN FROM MF_ARP WHERE BIL_NO=%s""", [i["DH"]]).fetchall()[0][0], 4)
  3721. IndexError: list index out of range
  3722. ERROR 2019-10-31 11:39:07,548 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 84378
  3723. INFO 2019-10-31 13:14:18,613 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55
  3724. ERROR 2019-10-31 13:19:29,067 log 228 Internal Server Error: /sales/
  3725. Traceback (most recent call last):
  3726. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3727. response = get_response(request)
  3728. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3729. response = self.process_exception_by_middleware(e, request)
  3730. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3731. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3732. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3733. return self.dispatch(request, *args, **kwargs)
  3734. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3735. return handler(request, *args, **kwargs)
  3736. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3737. return func(*args, **kwds)
  3738. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 225, in delete
  3739. if int(ZHANG_ID) != 1 and int(ZHANG_ID) != 2:
  3740. TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
  3741. ERROR 2019-10-31 13:19:29,069 basehttp 154 "DELETE /sales/ HTTP/1.1" 500 82324
  3742. WARNING 2019-10-31 13:21:26,048 log 228 Forbidden: /sales/
  3743. WARNING 2019-10-31 13:21:26,049 basehttp 154 "DELETE /sales/ HTTP/1.1" 403 21
  3744. ERROR 2019-10-31 13:21:45,155 log 228 Internal Server Error: /sales/
  3745. Traceback (most recent call last):
  3746. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3747. response = get_response(request)
  3748. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3749. response = self.process_exception_by_middleware(e, request)
  3750. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3751. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3752. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3753. return self.dispatch(request, *args, **kwargs)
  3754. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3755. return handler(request, *args, **kwargs)
  3756. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3757. return func(*args, **kwds)
  3758. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 230, in delete
  3759. row_TC_MON = examine_ood('TC_MON', 'RP_NO', 'AR' + ZL_NO[2::], 'RP_ID', '1')
  3760. TypeError: 'NoneType' object is not subscriptable
  3761. ERROR 2019-10-31 13:21:45,157 basehttp 154 "DELETE /sales/ HTTP/1.1" 500 82315
  3762. INFO 2019-10-31 13:24:53,745 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3763. INFO 2019-10-31 13:25:03,975 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3764. INFO 2019-10-31 13:25:22,981 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55
  3765. INFO 2019-10-31 13:26:44,203 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55
  3766. WARNING 2019-10-31 13:40:15,886 log 228 Forbidden: /predictpayment/
  3767. WARNING 2019-10-31 13:40:15,888 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 18
  3768. INFO 2019-10-31 13:40:40,334 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54
  3769. ERROR 2019-10-31 13:54:42,877 log 228 Internal Server Error: /predictpayment/
  3770. Traceback (most recent call last):
  3771. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3772. return self.cursor.execute(sql, params)
  3773. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3774. return self.cursor.execute(sql, params)
  3775. pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'RP_ID' 附近有语法错误。 (102) (SQLExecDirectW); [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  3776. The above exception was the direct cause of the following exception:
  3777. Traceback (most recent call last):
  3778. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3779. response = get_response(request)
  3780. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3781. response = self.process_exception_by_middleware(e, request)
  3782. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3783. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3784. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3785. return self.dispatch(request, *args, **kwargs)
  3786. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3787. return handler(request, *args, **kwargs)
  3788. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3789. return func(*args, **kwds)
  3790. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 891, in delete
  3791. cursor.execute("""DELETE FROM TF_MON1 WHERE RP_NO=%s RP_ID='1'""", [RP_NO])
  3792. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 100, in execute
  3793. return super().execute(sql, params)
  3794. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 68, in execute
  3795. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  3796. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
  3797. return executor(sql, params, many, context)
  3798. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3799. return self.cursor.execute(sql, params)
  3800. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\utils.py", line 89, in __exit__
  3801. raise dj_exc_value.with_traceback(traceback) from exc_value
  3802. File "C:\Users\12446\Envs\awj\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
  3803. return self.cursor.execute(sql, params)
  3804. File "C:\Users\12446\Envs\awj\lib\site-packages\sql_server\pyodbc\base.py", line 546, in execute
  3805. return self.cursor.execute(sql, params)
  3806. django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'RP_ID' 附近有语法错误。 (102) (SQLExecDirectW); [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  3807. ERROR 2019-10-31 13:54:42,882 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 500 127177
  3808. INFO 2019-10-31 13:58:39,440 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 200 57
  3809. INFO 2019-10-31 13:59:16,898 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55
  3810. INFO 2019-10-31 13:59:30,475 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54
  3811. INFO 2019-10-31 13:59:47,133 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 200 57
  3812. WARNING 2019-11-01 13:19:01,710 log 228 Forbidden: /sales/
  3813. WARNING 2019-11-01 13:19:01,815 basehttp 154 "POST /sales/ HTTP/1.1" 403 77
  3814. INFO 2019-11-01 13:19:18,508 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3815. WARNING 2019-11-01 13:20:50,209 log 228 Forbidden: /sales/
  3816. WARNING 2019-11-01 13:20:50,209 basehttp 154 "POST /sales/ HTTP/1.1" 403 27
  3817. WARNING 2019-11-01 13:21:24,074 log 228 Forbidden: /sales/
  3818. WARNING 2019-11-01 13:21:24,074 basehttp 154 "POST /sales/ HTTP/1.1" 403 27
  3819. WARNING 2019-11-01 13:22:01,120 log 228 Forbidden: /sales/
  3820. WARNING 2019-11-01 13:22:01,121 basehttp 154 "POST /sales/ HTTP/1.1" 403 77
  3821. WARNING 2019-11-01 13:23:02,571 log 228 Forbidden: /sales/
  3822. WARNING 2019-11-01 13:23:02,571 basehttp 154 "POST /sales/ HTTP/1.1" 403 21
  3823. WARNING 2019-11-01 13:23:15,243 log 228 Forbidden: /sales/
  3824. WARNING 2019-11-01 13:23:15,243 basehttp 154 "POST /sales/ HTTP/1.1" 403 27
  3825. INFO 2019-11-01 13:23:27,865 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3826. WARNING 2019-11-01 13:31:04,968 log 228 Forbidden: /sales/
  3827. WARNING 2019-11-01 13:31:04,968 basehttp 154 "PUT /sales/ HTTP/1.1" 403 45
  3828. INFO 2019-11-01 13:32:14,626 basehttp 154 "PUT /sales/ HTTP/1.1" 200 60
  3829. ERROR 2019-11-01 13:33:57,082 log 228 Internal Server Error: /sales/
  3830. Traceback (most recent call last):
  3831. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3832. response = get_response(request)
  3833. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3834. response = self.process_exception_by_middleware(e, request)
  3835. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3836. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3837. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3838. return self.dispatch(request, *args, **kwargs)
  3839. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3840. return handler(request, *args, **kwargs)
  3841. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3842. return func(*args, **kwds)
  3843. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 182, in put
  3844. if re.compile('(^-?[0-9](\d+)?(\.\d{1,6})?$)|(^0$)|(^\d\.\d{1,2}$)').match(AMT) is None:
  3845. TypeError: expected string or bytes-like object
  3846. ERROR 2019-11-01 13:33:57,084 basehttp 154 "PUT /sales/ HTTP/1.1" 500 85230
  3847. ERROR 2019-11-01 13:34:35,913 log 228 Internal Server Error: /sales/
  3848. Traceback (most recent call last):
  3849. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3850. response = get_response(request)
  3851. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3852. response = self.process_exception_by_middleware(e, request)
  3853. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3854. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3855. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3856. return self.dispatch(request, *args, **kwargs)
  3857. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3858. return handler(request, *args, **kwargs)
  3859. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3860. return func(*args, **kwds)
  3861. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 182, in put
  3862. if re.compile('(^-?[0-9](\d+)?(\.\d{1,6})?$)|(^0$)|(^\d\.\d{1,2}$)').match(AMT) is None:
  3863. TypeError: expected string or bytes-like object
  3864. ERROR 2019-11-01 13:34:35,971 basehttp 154 "PUT /sales/ HTTP/1.1" 500 85229
  3865. WARNING 2019-11-01 13:36:30,555 log 228 Forbidden: /sales/
  3866. WARNING 2019-11-01 13:36:30,556 basehttp 154 "PUT /sales/ HTTP/1.1" 403 51
  3867. WARNING 2019-11-01 13:36:54,761 log 228 Forbidden: /sales/
  3868. WARNING 2019-11-01 13:36:54,761 basehttp 154 "PUT /sales/ HTTP/1.1" 403 51
  3869. INFO 2019-11-01 13:43:51,173 basehttp 154 "DELETE /sales/ HTTP/1.1" 200 63
  3870. INFO 2019-11-01 13:49:22,907 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  3871. WARNING 2019-11-01 14:11:30,593 log 228 Forbidden: /proceeds/
  3872. WARNING 2019-11-01 14:11:30,594 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77
  3873. WARNING 2019-11-01 14:11:39,487 log 228 Forbidden: /proceeds/
  3874. WARNING 2019-11-01 14:11:39,488 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77
  3875. WARNING 2019-11-01 14:11:49,961 log 228 Forbidden: /proceeds/
  3876. WARNING 2019-11-01 14:11:49,962 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77
  3877. WARNING 2019-11-01 14:12:55,961 log 228 Forbidden: /proceeds/
  3878. WARNING 2019-11-01 14:12:55,962 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 77
  3879. WARNING 2019-11-01 14:13:08,152 log 228 Forbidden: /proceeds/
  3880. WARNING 2019-11-01 14:13:08,153 basehttp 154 "POST /proceeds/ HTTP/1.1" 403 21
  3881. INFO 2019-11-01 14:13:13,947 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  3882. ERROR 2019-11-01 14:25:21,711 log 228 Internal Server Error: /proceeds/
  3883. Traceback (most recent call last):
  3884. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3885. response = get_response(request)
  3886. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3887. response = self.process_exception_by_middleware(e, request)
  3888. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3889. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3890. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3891. return self.dispatch(request, *args, **kwargs)
  3892. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3893. return handler(request, *args, **kwargs)
  3894. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3895. return func(*args, **kwds)
  3896. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 403, in put
  3897. req_data = json.loads(request.body.decode())
  3898. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  3899. return _default_decoder.decode(s)
  3900. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  3901. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  3902. File "e:\12446\appdata\Lib\json\decoder.py", line 355, in raw_decode
  3903. obj, end = self.scan_once(s, idx)
  3904. json.decoder.JSONDecodeError: Expecting ',' delimiter: line 4 column 17 (char 73)
  3905. ERROR 2019-11-01 14:25:21,714 basehttp 154 "PUT /proceeds/ HTTP/1.1" 500 94811
  3906. WARNING 2019-11-01 14:26:31,795 log 228 Forbidden: /proceeds/
  3907. WARNING 2019-11-01 14:26:31,795 basehttp 154 "PUT /proceeds/ HTTP/1.1" 403 21
  3908. ERROR 2019-11-01 14:26:55,614 log 228 Internal Server Error: /proceeds/
  3909. Traceback (most recent call last):
  3910. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3911. response = get_response(request)
  3912. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3913. response = self.process_exception_by_middleware(e, request)
  3914. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3915. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3916. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3917. return self.dispatch(request, *args, **kwargs)
  3918. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3919. return handler(request, *args, **kwargs)
  3920. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3921. return func(*args, **kwds)
  3922. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 403, in put
  3923. req_data = json.loads(request.body.decode())
  3924. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  3925. return _default_decoder.decode(s)
  3926. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  3927. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  3928. File "e:\12446\appdata\Lib\json\decoder.py", line 355, in raw_decode
  3929. obj, end = self.scan_once(s, idx)
  3930. json.decoder.JSONDecodeError: Expecting ',' delimiter: line 4 column 17 (char 73)
  3931. ERROR 2019-11-01 14:26:55,616 basehttp 154 "PUT /proceeds/ HTTP/1.1" 500 94808
  3932. WARNING 2019-11-01 14:27:03,962 log 228 Forbidden: /proceeds/
  3933. WARNING 2019-11-01 14:27:03,963 basehttp 154 "PUT /proceeds/ HTTP/1.1" 403 21
  3934. INFO 2019-11-01 14:29:09,194 basehttp 154 "PUT /proceeds/ HTTP/1.1" 200 48
  3935. INFO 2019-11-01 14:34:53,249 basehttp 154 "DELETE /proceeds/ HTTP/1.1" 200 51
  3936. WARNING 2019-11-01 14:49:17,092 log 228 Forbidden: /predictproceeds/
  3937. WARNING 2019-11-01 14:49:17,093 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81
  3938. WARNING 2019-11-01 14:49:24,441 log 228 Forbidden: /predictproceeds/
  3939. WARNING 2019-11-01 14:49:24,441 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81
  3940. WARNING 2019-11-01 14:49:58,609 log 228 Forbidden: /predictproceeds/
  3941. WARNING 2019-11-01 14:49:58,610 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81
  3942. WARNING 2019-11-01 14:50:23,437 log 228 Forbidden: /predictproceeds/
  3943. WARNING 2019-11-01 14:50:23,437 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 81
  3944. WARNING 2019-11-01 14:50:40,875 log 228 Forbidden: /predictproceeds/
  3945. WARNING 2019-11-01 14:50:40,876 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 403 21
  3946. INFO 2019-11-01 14:51:20,192 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  3947. WARNING 2019-11-01 15:22:53,636 log 228 Forbidden: /predictproceeds/
  3948. WARNING 2019-11-01 15:22:53,636 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 403 81
  3949. WARNING 2019-11-01 15:23:04,357 log 228 Forbidden: /predictproceeds/
  3950. WARNING 2019-11-01 15:23:04,358 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 403 81
  3951. WARNING 2019-11-01 15:23:12,163 log 228 Forbidden: /predictproceeds/
  3952. WARNING 2019-11-01 15:23:12,164 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 403 21
  3953. INFO 2019-11-01 15:23:16,541 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60
  3954. INFO 2019-11-01 15:23:30,904 basehttp 154 "PUT /predictproceeds/ HTTP/1.1" 200 60
  3955. INFO 2019-11-01 15:33:26,037 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63
  3956. INFO 2019-11-01 15:34:24,768 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  3957. INFO 2019-11-01 15:34:43,307 basehttp 154 "DELETE /predictproceeds/ HTTP/1.1" 200 63
  3958. INFO 2019-11-01 15:35:49,807 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  3959. WARNING 2019-11-01 16:04:28,431 log 228 Forbidden: /predictpayment/
  3960. WARNING 2019-11-01 16:04:28,432 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 81
  3961. WARNING 2019-11-01 16:23:08,201 log 228 Forbidden: /predictpayment/
  3962. WARNING 2019-11-01 16:23:08,202 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 78
  3963. WARNING 2019-11-01 16:23:54,853 log 228 Forbidden: /predictpayment/
  3964. WARNING 2019-11-01 16:23:54,854 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77
  3965. WARNING 2019-11-01 16:24:53,507 log 228 Forbidden: /predictpayment/
  3966. WARNING 2019-11-01 16:24:53,507 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 24
  3967. ERROR 2019-11-01 16:25:57,326 log 228 Internal Server Error: /predictpayment/
  3968. Traceback (most recent call last):
  3969. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3970. response = get_response(request)
  3971. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  3972. response = self.process_exception_by_middleware(e, request)
  3973. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  3974. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  3975. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  3976. return self.dispatch(request, *args, **kwargs)
  3977. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  3978. return handler(request, *args, **kwargs)
  3979. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  3980. return func(*args, **kwds)
  3981. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 760, in post
  3982. req_data = json.loads(request.body.decode())
  3983. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  3984. return _default_decoder.decode(s)
  3985. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  3986. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  3987. File "e:\12446\appdata\Lib\json\decoder.py", line 355, in raw_decode
  3988. obj, end = self.scan_once(s, idx)
  3989. json.decoder.JSONDecodeError: Expecting ',' delimiter: line 9 column 19 (char 200)
  3990. ERROR 2019-11-01 16:25:57,329 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 95999
  3991. WARNING 2019-11-01 16:26:14,247 log 228 Forbidden: /predictpayment/
  3992. WARNING 2019-11-01 16:26:14,247 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 24
  3993. WARNING 2019-11-01 16:27:08,761 log 228 Forbidden: /predictpayment/
  3994. WARNING 2019-11-01 16:27:08,761 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 24
  3995. ERROR 2019-11-01 16:27:36,380 log 228 Internal Server Error: /predictpayment/
  3996. Traceback (most recent call last):
  3997. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  3998. response = get_response(request)
  3999. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  4000. response = self.process_exception_by_middleware(e, request)
  4001. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  4002. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4003. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  4004. return self.dispatch(request, *args, **kwargs)
  4005. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  4006. return handler(request, *args, **kwargs)
  4007. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4008. return func(*args, **kwds)
  4009. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 811, in post
  4010. sum_ATM = round(sum_ATM + i["ATM"], 4)
  4011. TypeError: unsupported operand type(s) for +: 'int' and 'str'
  4012. ERROR 2019-11-01 16:27:36,380 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 84315
  4013. WARNING 2019-11-01 16:28:56,052 log 228 Forbidden: /predictpayment/
  4014. WARNING 2019-11-01 16:28:56,052 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 21
  4015. WARNING 2019-11-01 16:29:36,517 log 228 Forbidden: /predictpayment/
  4016. WARNING 2019-11-01 16:29:36,517 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77
  4017. WARNING 2019-11-01 16:29:51,042 log 228 Forbidden: /predictpayment/
  4018. WARNING 2019-11-01 16:29:51,042 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77
  4019. INFO 2019-11-01 16:31:22,212 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  4020. WARNING 2019-11-01 16:31:48,381 log 228 Forbidden: /predictpayment/
  4021. WARNING 2019-11-01 16:31:48,381 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77
  4022. WARNING 2019-11-01 16:32:48,505 log 228 Forbidden: /predictpayment/
  4023. WARNING 2019-11-01 16:32:48,506 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77
  4024. WARNING 2019-11-01 16:33:19,688 log 228 Forbidden: /predictpayment/
  4025. WARNING 2019-11-01 16:33:19,688 basehttp 154 "POST /predictpayment/ HTTP/1.1" 403 77
  4026. ERROR 2019-11-01 16:34:02,695 log 228 Internal Server Error: /predictpayment/
  4027. Traceback (most recent call last):
  4028. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4029. response = get_response(request)
  4030. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
  4031. response = self.process_exception_by_middleware(e, request)
  4032. File "C:\Users\12446\Envs\awj\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
  4033. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4034. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 68, in view
  4035. return self.dispatch(request, *args, **kwargs)
  4036. File "C:\Users\12446\Envs\awj\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
  4037. return handler(request, *args, **kwargs)
  4038. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4039. return func(*args, **kwds)
  4040. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 818, in post
  4041. sum_ATM = round(sum_ATM + i["ATM"], 4)
  4042. TypeError: unsupported operand type(s) for +: 'int' and 'str'
  4043. ERROR 2019-11-01 16:34:02,698 basehttp 154 "POST /predictpayment/ HTTP/1.1" 500 84445
  4044. INFO 2019-11-01 16:34:47,995 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55
  4045. WARNING 2019-11-01 16:45:10,035 log 228 Forbidden: /predictpayment/
  4046. WARNING 2019-11-01 16:45:10,036 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 78
  4047. WARNING 2019-11-01 16:45:26,850 log 228 Forbidden: /predictpayment/
  4048. WARNING 2019-11-01 16:45:26,851 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 24
  4049. WARNING 2019-11-01 16:45:33,334 log 228 Forbidden: /predictpayment/
  4050. WARNING 2019-11-01 16:45:33,334 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 21
  4051. WARNING 2019-11-01 16:45:38,530 log 228 Forbidden: /predictpayment/
  4052. WARNING 2019-11-01 16:45:38,530 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 77
  4053. INFO 2019-11-01 16:45:52,084 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54
  4054. INFO 2019-11-01 16:56:10,281 basehttp 154 "DELETE /predictpayment/ HTTP/1.1" 200 57
  4055. INFO 2019-11-01 16:56:39,119 basehttp 154 "POST /predictpayment/ HTTP/1.1" 200 55
  4056. INFO 2019-11-01 16:56:42,481 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 200 54
  4057. INFO 2019-11-01 17:08:00,063 basehttp 154 "POST /predictproceeds/ HTTP/1.1" 200 61
  4058. INFO 2019-11-01 17:09:56,722 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  4059. INFO 2019-11-03 09:31:11,225 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  4060. WARNING 2019-11-03 09:33:59,721 log 228 Forbidden: /invoice/
  4061. WARNING 2019-11-03 09:33:59,722 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77
  4062. WARNING 2019-11-03 09:35:05,095 log 228 Forbidden: /invoice/
  4063. WARNING 2019-11-03 09:35:05,095 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77
  4064. WARNING 2019-11-03 09:35:20,688 log 228 Forbidden: /invoice/
  4065. WARNING 2019-11-03 09:35:20,689 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77
  4066. WARNING 2019-11-03 09:35:52,639 log 228 Forbidden: /invoice/
  4067. WARNING 2019-11-03 09:35:52,640 basehttp 154 "POST /invoice/ HTTP/1.1" 403 77
  4068. INFO 2019-11-03 09:36:15,440 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  4069. WARNING 2019-11-03 09:36:19,691 log 228 Forbidden: /invoice/
  4070. WARNING 2019-11-03 09:36:19,691 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  4071. WARNING 2019-11-03 09:36:30,801 log 228 Forbidden: /invoice/
  4072. WARNING 2019-11-03 09:36:30,802 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  4073. WARNING 2019-11-03 09:40:34,660 log 228 Forbidden: /predictpayment/
  4074. WARNING 2019-11-03 09:40:34,661 basehttp 154 "PUT /predictpayment/ HTTP/1.1" 403 21
  4075. WARNING 2019-11-03 09:44:21,215 log 228 Forbidden: /invoice/
  4076. WARNING 2019-11-03 09:44:21,215 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 77
  4077. WARNING 2019-11-03 09:44:32,753 log 228 Forbidden: /invoice/
  4078. WARNING 2019-11-03 09:44:32,753 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 51
  4079. INFO 2019-11-03 09:44:40,144 basehttp 154 "PUT /invoice/ HTTP/1.1" 200 24
  4080. INFO 2019-11-03 09:51:45,857 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  4081. INFO 2019-11-03 09:52:28,758 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  4082. WARNING 2019-11-03 09:56:09,368 log 228 Forbidden: /paymentoperation/
  4083. WARNING 2019-11-03 09:56:09,368 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 77
  4084. WARNING 2019-11-03 09:56:30,717 log 228 Forbidden: /paymentoperation/
  4085. WARNING 2019-11-03 09:56:30,717 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21
  4086. WARNING 2019-11-03 09:56:42,839 log 228 Forbidden: /paymentoperation/
  4087. WARNING 2019-11-03 09:56:42,839 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21
  4088. WARNING 2019-11-03 10:09:35,938 log 228 Forbidden: /paymentoperation/
  4089. WARNING 2019-11-03 10:09:35,939 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 403 21
  4090. INFO 2019-11-03 10:10:05,544 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  4091. INFO 2019-11-03 10:10:38,281 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  4092. INFO 2019-11-03 10:14:17,182 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  4093. INFO 2019-11-03 10:14:21,515 basehttp 154 "POST /paymentoperation/ HTTP/1.1" 200 37
  4094. INFO 2019-11-03 10:16:01,412 basehttp 154 "POST /sales/ HTTP/1.1" 200 61
  4095. INFO 2019-11-03 10:16:40,654 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  4096. INFO 2019-11-03 10:16:44,598 basehttp 154 "POST /proceeds/ HTTP/1.1" 200 49
  4097. WARNING 2019-11-03 10:27:20,335 log 228 Forbidden: /expectedpoperation/
  4098. WARNING 2019-11-03 10:27:20,335 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 81
  4099. WARNING 2019-11-03 10:27:37,242 log 228 Forbidden: /expectedpoperation/
  4100. WARNING 2019-11-03 10:27:37,243 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 21
  4101. INFO 2019-11-03 10:27:42,844 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  4102. WARNING 2019-11-03 10:32:17,179 log 228 Forbidden: /expectedpoperation/
  4103. WARNING 2019-11-03 10:32:17,179 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24
  4104. INFO 2019-11-03 10:32:21,650 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  4105. INFO 2019-11-03 10:48:13,967 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  4106. WARNING 2019-11-03 10:49:09,912 log 228 Forbidden: /expectedptoperation/
  4107. WARNING 2019-11-03 10:49:09,912 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 78
  4108. WARNING 2019-11-03 10:49:19,047 log 228 Forbidden: /expectedptoperation/
  4109. WARNING 2019-11-03 10:49:19,048 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 78
  4110. WARNING 2019-11-03 10:53:16,383 log 228 Forbidden: /invoice/
  4111. WARNING 2019-11-03 10:53:16,383 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  4112. INFO 2019-11-03 10:53:23,953 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  4113. INFO 2019-11-03 10:55:32,096 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  4114. WARNING 2019-11-03 10:56:30,153 log 228 Forbidden: /expectedptoperation/
  4115. WARNING 2019-11-03 10:56:30,154 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 78
  4116. WARNING 2019-11-03 10:56:50,449 log 228 Forbidden: /expectedptoperation/
  4117. WARNING 2019-11-03 10:56:50,449 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 21
  4118. WARNING 2019-11-03 10:57:13,811 log 228 Forbidden: /expectedptoperation/
  4119. WARNING 2019-11-03 10:57:13,811 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 403 21
  4120. INFO 2019-11-03 10:58:47,136 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 200 55
  4121. INFO 2019-11-03 10:59:54,774 basehttp 154 "POST /expectedptoperation/ HTTP/1.1" 200 55
  4122. INFO 2019-11-03 11:07:29,842 basehttp 154 "GET /sales HTTP/1.1" 301 0
  4123. INFO 2019-11-03 11:07:29,865 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4124. WARNING 2019-11-03 11:07:29,914 log 228 Not Found: /favicon.ico
  4125. WARNING 2019-11-03 11:07:29,915 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3280
  4126. ERROR 2019-11-03 11:09:07,485 exception 77 Invalid HTTP_HOST header: '192.168.137.1:8000'. You may need to add '192.168.137.1' to ALLOWED_HOSTS.
  4127. WARNING 2019-11-03 11:09:07,524 log 228 Bad Request: /sales/
  4128. WARNING 2019-11-03 11:09:07,525 basehttp 154 "GET /sales/ HTTP/1.1" 400 66679
  4129. ERROR 2019-11-03 11:09:07,706 exception 77 Invalid HTTP_HOST header: '192.168.137.1:8000'. You may need to add '192.168.137.1' to ALLOWED_HOSTS.
  4130. WARNING 2019-11-03 11:09:07,742 log 228 Bad Request: /favicon.ico
  4131. WARNING 2019-11-03 11:09:07,742 basehttp 154 "GET /favicon.ico HTTP/1.1" 400 66668
  4132. INFO 2019-11-03 11:12:55,385 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4133. WARNING 2019-11-03 11:12:55,413 log 228 Not Found: /favicon.ico
  4134. WARNING 2019-11-03 11:12:55,413 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3284
  4135. WARNING 2019-11-03 11:13:36,096 log 228 Not Found: /
  4136. WARNING 2019-11-03 11:13:36,096 basehttp 154 "GET / HTTP/1.1" 404 3234
  4137. WARNING 2019-11-03 11:13:53,887 log 228 Not Found: //sales/
  4138. WARNING 2019-11-03 11:13:53,888 basehttp 154 "GET //sales/ HTTP/1.1" 404 3273
  4139. WARNING 2019-11-03 11:13:54,057 log 228 Not Found: /favicon.ico
  4140. WARNING 2019-11-03 11:13:54,058 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  4141. INFO 2019-11-03 11:14:00,119 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4142. INFO 2019-11-03 11:15:08,274 basehttp 154 "GET /sales HTTP/1.1" 301 0
  4143. INFO 2019-11-03 11:15:08,485 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4144. INFO 2019-11-03 11:15:34,578 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4145. WARNING 2019-11-03 11:15:34,750 log 228 Not Found: /favicon.ico
  4146. WARNING 2019-11-03 11:15:34,751 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  4147. INFO 2019-11-03 11:15:43,992 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4148. WARNING 2019-11-03 11:15:44,662 log 228 Not Found: /favicon.ico
  4149. WARNING 2019-11-03 11:15:44,663 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  4150. INFO 2019-11-03 11:15:46,578 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4151. WARNING 2019-11-03 11:15:46,910 log 228 Not Found: /favicon.ico
  4152. WARNING 2019-11-03 11:15:46,911 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  4153. INFO 2019-11-03 11:15:52,647 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4154. WARNING 2019-11-03 11:15:58,776 log 228 Not Found: /favicon.ico
  4155. WARNING 2019-11-03 11:15:58,776 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  4156. INFO 2019-11-03 11:16:00,367 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4157. WARNING 2019-11-03 11:16:03,144 log 228 Not Found: /favicon.ico
  4158. WARNING 2019-11-03 11:16:03,144 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  4159. INFO 2019-11-03 11:16:04,835 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4160. WARNING 2019-11-03 11:16:05,110 log 228 Not Found: /favicon.ico
  4161. WARNING 2019-11-03 11:16:05,111 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  4162. INFO 2019-11-03 11:18:35,084 basehttp 154 "GET /sales/ HTTP/1.0" 200 54
  4163. WARNING 2019-11-03 11:18:38,541 log 228 Not Found: /
  4164. WARNING 2019-11-03 11:18:38,542 basehttp 154 "GET / HTTP/1.0" 404 3234
  4165. INFO 2019-11-03 11:19:31,881 basehttp 154 "GET /invoice/ HTTP/1.0" 200 10
  4166. INFO 2019-11-03 11:20:32,044 basehttp 154 "GET /invoice HTTP/1.1" 301 0
  4167. WARNING 2019-11-03 11:20:41,040 log 228 Not Found: /
  4168. WARNING 2019-11-03 11:20:41,041 basehttp 154 "HEAD / HTTP/1.1" 404 3235
  4169. WARNING 2019-11-03 11:21:39,260 log 228 Not Found: /
  4170. WARNING 2019-11-03 11:21:39,260 basehttp 154 "HEAD / HTTP/1.1" 404 3235
  4171. INFO 2019-11-03 11:29:33,529 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4172. WARNING 2019-11-03 11:29:33,903 log 228 Not Found: /favicon.ico
  4173. WARNING 2019-11-03 11:29:33,903 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3285
  4174. INFO 2019-11-03 11:29:41,481 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4175. INFO 2019-11-05 21:33:18,500 basehttp 154 "GET /predictpayment HTTP/1.1" 301 0
  4176. INFO 2019-11-05 21:33:20,080 basehttp 154 "GET /predictpayment/ HTTP/1.1" 200 54
  4177. WARNING 2019-11-05 21:33:20,108 log 228 Not Found: /favicon.ico
  4178. WARNING 2019-11-05 21:33:20,109 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3284
  4179. INFO 2019-11-05 21:47:09,730 basehttp 154 "GET /predictpayment/ HTTP/1.1" 200 54
  4180. INFO 2019-11-05 23:00:01,830 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4181. WARNING 2019-11-05 23:00:01,930 log 228 Not Found: /favicon.ico
  4182. WARNING 2019-11-05 23:00:01,930 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3280
  4183. INFO 2019-11-08 09:33:38,919 autoreload 597 Watching for file changes with StatReloader
  4184. INFO 2019-11-08 09:33:49,455 autoreload 597 Watching for file changes with StatReloader
  4185. INFO 2019-11-08 09:34:47,820 autoreload 597 Watching for file changes with StatReloader
  4186. INFO 2019-11-08 09:35:01,386 autoreload 597 Watching for file changes with StatReloader
  4187. INFO 2019-11-08 09:35:27,500 autoreload 597 Watching for file changes with StatReloader
  4188. INFO 2019-11-08 09:37:33,632 autoreload 597 Watching for file changes with StatReloader
  4189. INFO 2019-11-08 09:39:12,188 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\setting\dev.py changed, reloading.
  4190. INFO 2019-11-08 09:39:12,927 autoreload 597 Watching for file changes with StatReloader
  4191. INFO 2019-11-08 09:39:19,867 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\setting\dev.py changed, reloading.
  4192. INFO 2019-11-08 09:39:20,619 autoreload 597 Watching for file changes with StatReloader
  4193. INFO 2019-11-08 09:39:21,033 autoreload 597 Watching for file changes with StatReloader
  4194. INFO 2019-11-08 09:40:28,193 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\setting\dev.py changed, reloading.
  4195. INFO 2019-11-08 09:40:28,892 autoreload 597 Watching for file changes with StatReloader
  4196. INFO 2019-11-08 09:40:38,901 autoreload 597 Watching for file changes with StatReloader
  4197. INFO 2019-11-08 09:40:47,636 autoreload 597 Watching for file changes with StatReloader
  4198. INFO 2019-11-09 16:06:19,043 autoreload 597 Watching for file changes with StatReloader
  4199. INFO 2019-11-09 16:06:58,214 autoreload 597 Watching for file changes with StatReloader
  4200. INFO 2019-11-09 16:14:47,264 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\urls.py changed, reloading.
  4201. INFO 2019-11-09 16:14:47,923 autoreload 597 Watching for file changes with StatReloader
  4202. INFO 2019-11-09 16:19:18,966 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\urls.py changed, reloading.
  4203. INFO 2019-11-09 16:19:19,699 autoreload 597 Watching for file changes with StatReloader
  4204. INFO 2019-11-11 16:16:41,670 autoreload 597 Watching for file changes with StatReloader
  4205. WARNING 2019-11-11 16:17:01,982 log 228 Not Found: /favicon.ico
  4206. WARNING 2019-11-11 16:17:01,982 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 77
  4207. INFO 2019-11-11 16:17:09,641 basehttp 154 "GET /sales HTTP/1.1" 301 0
  4208. INFO 2019-11-11 16:17:09,666 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4209. WARNING 2019-11-11 16:17:09,922 log 228 Not Found: /favicon.ico
  4210. WARNING 2019-11-11 16:17:09,924 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 77
  4211. INFO 2019-11-11 16:17:14,643 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4212. INFO 2019-11-11 16:32:32,833 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  4213. INFO 2019-11-11 16:32:33,757 autoreload 597 Watching for file changes with StatReloader
  4214. INFO 2019-11-11 16:33:46,402 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  4215. INFO 2019-11-11 16:33:47,295 autoreload 597 Watching for file changes with StatReloader
  4216. INFO 2019-11-11 16:37:45,902 autoreload 597 Watching for file changes with StatReloader
  4217. ERROR 2019-11-11 16:37:47,798 log 228 Internal Server Error: /sales/
  4218. Traceback (most recent call last):
  4219. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4220. response = get_response(request)
  4221. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4222. response = self.process_exception_by_middleware(e, request)
  4223. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4224. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4225. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4226. return self.dispatch(request, *args, **kwargs)
  4227. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4228. return handler(request, *args, **kwargs)
  4229. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4230. return func(*args, **kwds)
  4231. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  4232. return http.JsonResponse(json.dumps(context))
  4233. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  4234. 'In order to allow non-dict objects to be serialized set the '
  4235. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  4236. ERROR 2019-11-11 16:37:47,902 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  4237. ERROR 2019-11-11 16:37:57,001 log 228 Internal Server Error: /sales/
  4238. Traceback (most recent call last):
  4239. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4240. response = get_response(request)
  4241. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4242. response = self.process_exception_by_middleware(e, request)
  4243. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4244. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4245. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4246. return self.dispatch(request, *args, **kwargs)
  4247. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4248. return handler(request, *args, **kwargs)
  4249. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4250. return func(*args, **kwds)
  4251. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  4252. return http.JsonResponse(json.dumps(context))
  4253. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  4254. 'In order to allow non-dict objects to be serialized set the '
  4255. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  4256. ERROR 2019-11-11 16:37:57,002 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  4257. ERROR 2019-11-11 16:38:00,350 log 228 Internal Server Error: /sales/
  4258. Traceback (most recent call last):
  4259. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4260. response = get_response(request)
  4261. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4262. response = self.process_exception_by_middleware(e, request)
  4263. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4264. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4265. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4266. return self.dispatch(request, *args, **kwargs)
  4267. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4268. return handler(request, *args, **kwargs)
  4269. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4270. return func(*args, **kwds)
  4271. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  4272. return http.JsonResponse(json.dumps(context))
  4273. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  4274. 'In order to allow non-dict objects to be serialized set the '
  4275. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  4276. ERROR 2019-11-11 16:38:00,350 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  4277. INFO 2019-11-11 16:38:21,714 autoreload 597 Watching for file changes with StatReloader
  4278. ERROR 2019-11-11 16:38:25,235 log 228 Internal Server Error: /sales/
  4279. Traceback (most recent call last):
  4280. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4281. response = get_response(request)
  4282. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4283. response = self.process_exception_by_middleware(e, request)
  4284. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4285. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4286. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4287. return self.dispatch(request, *args, **kwargs)
  4288. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4289. return handler(request, *args, **kwargs)
  4290. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4291. return func(*args, **kwds)
  4292. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  4293. return http.JsonResponse(json.dumps(context))
  4294. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  4295. 'In order to allow non-dict objects to be serialized set the '
  4296. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  4297. ERROR 2019-11-11 16:38:25,238 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  4298. ERROR 2019-11-11 16:38:47,178 log 228 Internal Server Error: /sales/
  4299. Traceback (most recent call last):
  4300. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4301. response = get_response(request)
  4302. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4303. response = self.process_exception_by_middleware(e, request)
  4304. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4305. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4306. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4307. return self.dispatch(request, *args, **kwargs)
  4308. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4309. return handler(request, *args, **kwargs)
  4310. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4311. return func(*args, **kwds)
  4312. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  4313. return http.JsonResponse(json.dumps(context))
  4314. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  4315. 'In order to allow non-dict objects to be serialized set the '
  4316. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  4317. ERROR 2019-11-11 16:38:47,179 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  4318. WARNING 2019-11-11 16:38:47,252 log 228 Not Found: /favicon.ico
  4319. WARNING 2019-11-11 16:38:47,253 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 77
  4320. INFO 2019-11-11 16:39:02,780 autoreload 597 Watching for file changes with StatReloader
  4321. ERROR 2019-11-11 16:39:05,535 log 228 Internal Server Error: /sales/
  4322. Traceback (most recent call last):
  4323. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4324. response = get_response(request)
  4325. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4326. response = self.process_exception_by_middleware(e, request)
  4327. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4328. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4329. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4330. return self.dispatch(request, *args, **kwargs)
  4331. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4332. return handler(request, *args, **kwargs)
  4333. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4334. return func(*args, **kwds)
  4335. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  4336. return http.JsonResponse(json.dumps(context))
  4337. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  4338. 'In order to allow non-dict objects to be serialized set the '
  4339. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  4340. ERROR 2019-11-11 16:39:05,536 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  4341. ERROR 2019-11-11 16:39:06,768 log 228 Internal Server Error: /sales/
  4342. Traceback (most recent call last):
  4343. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4344. response = get_response(request)
  4345. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4346. response = self.process_exception_by_middleware(e, request)
  4347. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4348. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4349. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4350. return self.dispatch(request, *args, **kwargs)
  4351. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4352. return handler(request, *args, **kwargs)
  4353. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4354. return func(*args, **kwds)
  4355. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  4356. return http.JsonResponse(json.dumps(context))
  4357. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  4358. 'In order to allow non-dict objects to be serialized set the '
  4359. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  4360. ERROR 2019-11-11 16:39:06,769 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  4361. ERROR 2019-11-11 16:39:08,320 log 228 Internal Server Error: /sales/
  4362. Traceback (most recent call last):
  4363. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4364. response = get_response(request)
  4365. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4366. response = self.process_exception_by_middleware(e, request)
  4367. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4368. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4369. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4370. return self.dispatch(request, *args, **kwargs)
  4371. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4372. return handler(request, *args, **kwargs)
  4373. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4374. return func(*args, **kwds)
  4375. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py", line 25, in get
  4376. return http.JsonResponse(json.dumps(context))
  4377. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\http\response.py", line 552, in __init__
  4378. 'In order to allow non-dict objects to be serialized set the '
  4379. TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
  4380. ERROR 2019-11-11 16:39:08,320 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  4381. INFO 2019-11-11 16:39:28,518 autoreload 597 Watching for file changes with StatReloader
  4382. INFO 2019-11-11 16:39:30,999 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4383. INFO 2019-11-12 14:40:17,795 autoreload 597 Watching for file changes with StatReloader
  4384. ERROR 2019-11-12 14:40:34,826 log 228 Internal Server Error: /sales/
  4385. Traceback (most recent call last):
  4386. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4387. response = get_response(request)
  4388. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner
  4389. req_data = json.loads(request.body.decode())
  4390. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  4391. return _default_decoder.decode(s)
  4392. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  4393. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  4394. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  4395. raise JSONDecodeError("Expecting value", s, err.value) from None
  4396. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  4397. ERROR 2019-11-12 14:40:34,959 basehttp 154 "GET /sales/ HTTP/1.1" 500 27
  4398. ERROR 2019-11-12 14:40:34,991 log 228 Internal Server Error: /favicon.ico
  4399. Traceback (most recent call last):
  4400. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4401. response = get_response(request)
  4402. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner
  4403. req_data = json.loads(request.body.decode())
  4404. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  4405. return _default_decoder.decode(s)
  4406. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  4407. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  4408. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  4409. raise JSONDecodeError("Expecting value", s, err.value) from None
  4410. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  4411. ERROR 2019-11-12 14:40:34,992 basehttp 154 "GET /favicon.ico HTTP/1.1" 500 27
  4412. INFO 2019-11-12 14:41:55,920 autoreload 597 Watching for file changes with StatReloader
  4413. ERROR 2019-11-12 14:41:59,326 log 228 Internal Server Error: /sales/
  4414. Traceback (most recent call last):
  4415. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4416. response = get_response(request)
  4417. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner
  4418. req_data = json.loads(request.body.decode())
  4419. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  4420. return _default_decoder.decode(s)
  4421. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  4422. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  4423. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  4424. raise JSONDecodeError("Expecting value", s, err.value) from None
  4425. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  4426. ERROR 2019-11-12 14:41:59,327 basehttp 154 "GET /sales/ HTTP/1.1" 500 73496
  4427. ERROR 2019-11-12 14:41:59,575 log 228 Internal Server Error: /favicon.ico
  4428. Traceback (most recent call last):
  4429. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4430. response = get_response(request)
  4431. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner
  4432. req_data = json.loads(request.body.decode())
  4433. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  4434. return _default_decoder.decode(s)
  4435. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  4436. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  4437. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  4438. raise JSONDecodeError("Expecting value", s, err.value) from None
  4439. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  4440. ERROR 2019-11-12 14:41:59,577 basehttp 154 "GET /favicon.ico HTTP/1.1" 500 73597
  4441. INFO 2019-11-12 14:44:10,525 autoreload 597 Watching for file changes with StatReloader
  4442. ERROR 2019-11-12 14:44:14,891 log 228 Internal Server Error: /sales/
  4443. Traceback (most recent call last):
  4444. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4445. response = get_response(request)
  4446. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner
  4447. req_data = json.loads(request.body.decode())
  4448. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  4449. return _default_decoder.decode(s)
  4450. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  4451. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  4452. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  4453. raise JSONDecodeError("Expecting value", s, err.value) from None
  4454. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  4455. ERROR 2019-11-12 14:44:14,892 basehttp 154 "GET /sales/ HTTP/1.1" 500 73537
  4456. ERROR 2019-11-12 14:44:15,024 log 228 Internal Server Error: /favicon.ico
  4457. Traceback (most recent call last):
  4458. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4459. response = get_response(request)
  4460. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 10, in inner
  4461. req_data = json.loads(request.body.decode())
  4462. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  4463. return _default_decoder.decode(s)
  4464. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  4465. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  4466. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  4467. raise JSONDecodeError("Expecting value", s, err.value) from None
  4468. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  4469. ERROR 2019-11-12 14:44:15,025 basehttp 154 "GET /favicon.ico HTTP/1.1" 500 73638
  4470. INFO 2019-11-12 14:44:44,179 autoreload 597 Watching for file changes with StatReloader
  4471. INFO 2019-11-12 14:44:45,988 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4472. WARNING 2019-11-12 14:44:46,053 log 228 Not Found: /favicon.ico
  4473. WARNING 2019-11-12 14:44:46,054 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 3280
  4474. INFO 2019-11-12 14:45:20,751 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  4475. INFO 2019-11-12 14:45:21,715 autoreload 597 Watching for file changes with StatReloader
  4476. INFO 2019-11-12 14:46:22,467 autoreload 597 Watching for file changes with StatReloader
  4477. INFO 2019-11-12 14:46:37,151 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4478. INFO 2019-11-12 14:47:12,111 autoreload 597 Watching for file changes with StatReloader
  4479. INFO 2019-11-12 14:47:14,473 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4480. INFO 2019-11-12 14:47:29,166 autoreload 597 Watching for file changes with StatReloader
  4481. INFO 2019-11-12 14:47:31,456 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4482. INFO 2019-11-12 14:47:51,244 autoreload 597 Watching for file changes with StatReloader
  4483. INFO 2019-11-12 14:47:53,102 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4484. INFO 2019-11-12 14:48:18,072 autoreload 597 Watching for file changes with StatReloader
  4485. INFO 2019-11-12 14:48:21,911 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4486. INFO 2019-11-12 14:48:41,055 autoreload 597 Watching for file changes with StatReloader
  4487. INFO 2019-11-12 14:48:43,306 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4488. INFO 2019-11-12 14:50:12,409 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  4489. INFO 2019-11-12 14:50:13,187 autoreload 597 Watching for file changes with StatReloader
  4490. WARNING 2019-11-12 14:50:55,463 log 228 Forbidden: /sales/
  4491. WARNING 2019-11-12 14:50:55,464 basehttp 154 "GET /sales/ HTTP/1.1" 403 27
  4492. INFO 2019-11-12 14:52:22,141 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  4493. INFO 2019-11-12 14:52:23,594 autoreload 597 Watching for file changes with StatReloader
  4494. INFO 2019-11-12 14:52:51,587 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4495. INFO 2019-11-12 14:54:17,547 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  4496. INFO 2019-11-12 14:54:18,321 autoreload 597 Watching for file changes with StatReloader
  4497. INFO 2019-11-12 14:56:21,151 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  4498. INFO 2019-11-12 14:56:22,161 autoreload 597 Watching for file changes with StatReloader
  4499. INFO 2019-11-12 14:56:34,244 autoreload 597 Watching for file changes with StatReloader
  4500. ERROR 2019-11-12 14:57:09,461 log 228 Internal Server Error: /invoice/
  4501. Traceback (most recent call last):
  4502. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4503. response = get_response(request)
  4504. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 11, in inner
  4505. req_data = json.loads(request.body.decode())
  4506. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  4507. return _default_decoder.decode(s)
  4508. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  4509. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  4510. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  4511. raise JSONDecodeError("Expecting value", s, err.value) from None
  4512. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  4513. ERROR 2019-11-12 14:57:09,463 basehttp 154 "POST /invoice/ HTTP/1.1" 500 88452
  4514. INFO 2019-11-12 14:58:18,482 autoreload 597 Watching for file changes with StatReloader
  4515. ERROR 2019-11-12 14:58:21,405 log 228 Internal Server Error: /invoice/
  4516. Traceback (most recent call last):
  4517. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4518. response = get_response(request)
  4519. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 12, in inner
  4520. req_data = json.loads(request.body.decode())
  4521. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  4522. return _default_decoder.decode(s)
  4523. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  4524. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  4525. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  4526. raise JSONDecodeError("Expecting value", s, err.value) from None
  4527. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  4528. ERROR 2019-11-12 14:58:21,408 basehttp 154 "POST /invoice/ HTTP/1.1" 500 88493
  4529. INFO 2019-11-12 15:00:00,823 autoreload 597 Watching for file changes with StatReloader
  4530. ERROR 2019-11-12 15:00:03,448 log 228 Internal Server Error: /invoice/
  4531. Traceback (most recent call last):
  4532. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4533. response = get_response(request)
  4534. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 13, in inner
  4535. req_data = json.loads(request.body.decode())
  4536. File "e:\12446\appdata\Lib\json\__init__.py", line 354, in loads
  4537. return _default_decoder.decode(s)
  4538. File "e:\12446\appdata\Lib\json\decoder.py", line 339, in decode
  4539. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  4540. File "e:\12446\appdata\Lib\json\decoder.py", line 357, in raw_decode
  4541. raise JSONDecodeError("Expecting value", s, err.value) from None
  4542. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  4543. ERROR 2019-11-12 15:00:03,449 basehttp 154 "POST /invoice/ HTTP/1.1" 500 88529
  4544. INFO 2019-11-12 15:00:47,374 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4545. INFO 2019-11-12 15:00:56,262 autoreload 597 Watching for file changes with StatReloader
  4546. INFO 2019-11-12 15:00:57,943 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4547. ERROR 2019-11-12 15:01:50,029 log 228 Internal Server Error: /invoice/
  4548. Traceback (most recent call last):
  4549. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4550. response = get_response(request)
  4551. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4552. response = self.process_exception_by_middleware(e, request)
  4553. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4554. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4555. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4556. return self.dispatch(request, *args, **kwargs)
  4557. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4558. return handler(request, *args, **kwargs)
  4559. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4560. return func(*args, **kwds)
  4561. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post
  4562. print(ZL_NO[:3])
  4563. TypeError: 'NoneType' object is not subscriptable
  4564. ERROR 2019-11-12 15:01:50,036 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293
  4565. INFO 2019-11-12 15:01:58,863 autoreload 597 Watching for file changes with StatReloader
  4566. ERROR 2019-11-12 15:02:02,319 log 228 Internal Server Error: /invoice/
  4567. Traceback (most recent call last):
  4568. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4569. response = get_response(request)
  4570. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4571. response = self.process_exception_by_middleware(e, request)
  4572. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4573. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4574. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4575. return self.dispatch(request, *args, **kwargs)
  4576. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4577. return handler(request, *args, **kwargs)
  4578. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4579. return func(*args, **kwds)
  4580. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post
  4581. print(ZL_NO[:3])
  4582. TypeError: 'NoneType' object is not subscriptable
  4583. ERROR 2019-11-12 15:02:02,320 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293
  4584. INFO 2019-11-12 15:02:57,081 autoreload 597 Watching for file changes with StatReloader
  4585. ERROR 2019-11-12 15:03:01,095 log 228 Internal Server Error: /invoice/
  4586. Traceback (most recent call last):
  4587. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4588. response = get_response(request)
  4589. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4590. response = self.process_exception_by_middleware(e, request)
  4591. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4592. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4593. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4594. return self.dispatch(request, *args, **kwargs)
  4595. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4596. return handler(request, *args, **kwargs)
  4597. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4598. return func(*args, **kwds)
  4599. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post
  4600. print(ZL_NO[:3])
  4601. TypeError: 'NoneType' object is not subscriptable
  4602. ERROR 2019-11-12 15:03:01,097 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293
  4603. INFO 2019-11-12 15:03:57,379 autoreload 597 Watching for file changes with StatReloader
  4604. ERROR 2019-11-12 15:04:00,651 log 228 Internal Server Error: /invoice/
  4605. Traceback (most recent call last):
  4606. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4607. response = get_response(request)
  4608. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 14, in inner
  4609. user = req_data.get("user") # 用户名
  4610. AttributeError: 'str' object has no attribute 'get'
  4611. ERROR 2019-11-12 15:04:00,655 basehttp 154 "POST /invoice/ HTTP/1.1" 500 58094
  4612. INFO 2019-11-12 15:04:57,318 autoreload 597 Watching for file changes with StatReloader
  4613. ERROR 2019-11-12 15:05:00,700 log 228 Internal Server Error: /sales/
  4614. Traceback (most recent call last):
  4615. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4616. response = get_response(request)
  4617. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py", line 14, in inner
  4618. user = req_data.get("user") # 用户名
  4619. AttributeError: 'str' object has no attribute 'get'
  4620. ERROR 2019-11-12 15:05:00,701 basehttp 154 "GET /sales/ HTTP/1.1" 500 58071
  4621. INFO 2019-11-12 15:05:14,607 autoreload 597 Watching for file changes with StatReloader
  4622. INFO 2019-11-12 15:05:16,907 basehttp 154 "GET /sales/ HTTP/1.1" 200 54
  4623. ERROR 2019-11-12 15:05:58,700 log 228 Internal Server Error: /invoice/
  4624. Traceback (most recent call last):
  4625. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4626. response = get_response(request)
  4627. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4628. response = self.process_exception_by_middleware(e, request)
  4629. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4630. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4631. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4632. return self.dispatch(request, *args, **kwargs)
  4633. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4634. return handler(request, *args, **kwargs)
  4635. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4636. return func(*args, **kwds)
  4637. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 69, in post
  4638. print(ZL_NO[:3])
  4639. TypeError: 'NoneType' object is not subscriptable
  4640. ERROR 2019-11-12 15:05:58,701 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84293
  4641. INFO 2019-11-12 15:06:40,324 autoreload 597 Watching for file changes with StatReloader
  4642. ERROR 2019-11-12 15:06:43,978 log 228 Internal Server Error: /invoice/
  4643. Traceback (most recent call last):
  4644. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4645. response = get_response(request)
  4646. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4647. response = self.process_exception_by_middleware(e, request)
  4648. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4649. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4650. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4651. return self.dispatch(request, *args, **kwargs)
  4652. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4653. return handler(request, *args, **kwargs)
  4654. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4655. return func(*args, **kwds)
  4656. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py", line 71, in post
  4657. if ZL_NO[:3] != 'LPF' or len(ZL_NO) != 10:
  4658. TypeError: 'NoneType' object is not subscriptable
  4659. ERROR 2019-11-12 15:06:43,980 basehttp 154 "POST /invoice/ HTTP/1.1" 500 84325
  4660. INFO 2019-11-12 15:06:56,069 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\stockinvoice\views.py changed, reloading.
  4661. INFO 2019-11-12 15:06:57,864 autoreload 597 Watching for file changes with StatReloader
  4662. INFO 2019-11-12 15:08:48,355 autoreload 597 Watching for file changes with StatReloader
  4663. WARNING 2019-11-12 15:09:09,420 log 228 Forbidden: /invoice/
  4664. WARNING 2019-11-12 15:09:09,421 basehttp 154 "POST /invoice/ HTTP/1.1" 403 16
  4665. INFO 2019-11-12 15:10:23,366 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  4666. INFO 2019-11-12 15:10:24,156 autoreload 597 Watching for file changes with StatReloader
  4667. INFO 2019-11-12 15:11:13,161 autoreload 597 Watching for file changes with StatReloader
  4668. WARNING 2019-11-12 15:11:16,082 log 228 Forbidden: /invoice/
  4669. WARNING 2019-11-12 15:11:16,083 basehttp 154 "POST /invoice/ HTTP/1.1" 403 27
  4670. INFO 2019-11-12 15:12:53,101 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  4671. INFO 2019-11-12 15:12:53,904 autoreload 597 Watching for file changes with StatReloader
  4672. INFO 2019-11-12 15:13:17,786 autoreload 597 Watching for file changes with StatReloader
  4673. WARNING 2019-11-12 15:13:26,023 log 228 Forbidden: /invoice/
  4674. WARNING 2019-11-12 15:13:26,024 basehttp 154 "POST /invoice/ HTTP/1.1" 403 27
  4675. INFO 2019-11-12 15:14:16,843 autoreload 597 Watching for file changes with StatReloader
  4676. WARNING 2019-11-12 15:14:19,319 log 228 Forbidden: /invoice/
  4677. WARNING 2019-11-12 15:14:19,320 basehttp 154 "POST /invoice/ HTTP/1.1" 403 27
  4678. INFO 2019-11-12 15:15:41,239 autoreload 597 Watching for file changes with StatReloader
  4679. WARNING 2019-11-12 15:15:44,018 log 228 Forbidden: /invoice/
  4680. WARNING 2019-11-12 15:15:44,018 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  4681. WARNING 2019-11-12 15:15:52,636 log 228 Forbidden: /invoice/
  4682. WARNING 2019-11-12 15:15:52,638 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  4683. WARNING 2019-11-12 15:16:08,616 log 228 Forbidden: /invoice/
  4684. WARNING 2019-11-12 15:16:08,616 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  4685. WARNING 2019-11-12 15:16:21,275 log 228 Forbidden: /invoice/
  4686. WARNING 2019-11-12 15:16:21,276 basehttp 154 "POST /invoice/ HTTP/1.1" 403 18
  4687. INFO 2019-11-12 15:17:29,140 autoreload 597 Watching for file changes with StatReloader
  4688. INFO 2019-11-12 15:17:51,169 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  4689. WARNING 2019-11-12 15:18:49,024 log 228 Forbidden: /invoice/
  4690. WARNING 2019-11-12 15:18:49,025 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  4691. WARNING 2019-11-12 15:19:43,121 log 228 Forbidden: /invoice/
  4692. WARNING 2019-11-12 15:19:43,121 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  4693. INFO 2019-11-12 15:20:26,760 autoreload 597 Watching for file changes with StatReloader
  4694. WARNING 2019-11-12 15:20:29,834 log 228 Forbidden: /invoice/
  4695. WARNING 2019-11-12 15:20:29,835 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 15
  4696. WARNING 2019-11-12 15:20:49,384 log 228 Forbidden: /invoice/
  4697. WARNING 2019-11-12 15:20:49,384 basehttp 154 "DELETE /invoice/ HTTP/1.1" 403 21
  4698. INFO 2019-11-12 15:21:19,639 basehttp 154 "DELETE /invoice/ HTTP/1.1" 200 27
  4699. INFO 2019-11-12 15:22:23,031 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\middleware.py changed, reloading.
  4700. INFO 2019-11-12 15:22:24,106 autoreload 597 Watching for file changes with StatReloader
  4701. INFO 2019-11-12 15:37:34,924 autoreload 597 Watching for file changes with StatReloader
  4702. WARNING 2019-11-12 15:38:19,360 log 228 Forbidden (CSRF cookie not set.): /invoice/
  4703. WARNING 2019-11-12 15:38:19,361 basehttp 154 "POST /invoice/ HTTP/1.1" 403 2868
  4704. INFO 2019-11-12 15:38:59,231 autoreload 597 Watching for file changes with StatReloader
  4705. INFO 2019-11-12 15:39:03,593 basehttp 154 "POST /invoice/ HTTP/1.1" 200 25
  4706. INFO 2019-11-12 15:39:12,325 autoreload 597 Watching for file changes with StatReloader
  4707. WARNING 2019-11-12 15:39:15,126 log 228 Forbidden (CSRF cookie not set.): /invoice/
  4708. WARNING 2019-11-12 15:39:15,128 basehttp 154 "POST /invoice/ HTTP/1.1" 403 2868
  4709. WARNING 2019-11-12 15:40:51,787 log 228 Forbidden: /invoice/
  4710. WARNING 2019-11-12 15:40:51,787 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 18
  4711. WARNING 2019-11-12 15:41:12,896 log 228 Forbidden (CSRF cookie not set.): /invoice/
  4712. WARNING 2019-11-12 15:41:12,896 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868
  4713. WARNING 2019-11-12 15:44:11,969 log 228 Forbidden (CSRF cookie not set.): /invoice/
  4714. WARNING 2019-11-12 15:44:11,969 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868
  4715. WARNING 2019-11-12 15:50:04,312 log 228 Forbidden (CSRF cookie not set.): /invoice/
  4716. WARNING 2019-11-12 15:50:04,313 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868
  4717. INFO 2019-11-12 15:50:17,119 autoreload 597 Watching for file changes with StatReloader
  4718. WARNING 2019-11-12 15:53:05,171 log 228 Forbidden (CSRF cookie not set.): /invoice/
  4719. WARNING 2019-11-12 15:53:05,172 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868
  4720. WARNING 2019-11-12 15:53:44,032 log 228 Forbidden (CSRF cookie not set.): /invoice/
  4721. WARNING 2019-11-12 15:53:44,033 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868
  4722. INFO 2019-11-12 15:54:05,117 autoreload 597 Watching for file changes with StatReloader
  4723. WARNING 2019-11-12 15:54:30,324 log 228 Forbidden (CSRF cookie not set.): /invoice/
  4724. WARNING 2019-11-12 15:54:30,325 basehttp 154 "PUT /invoice/ HTTP/1.1" 403 2868
  4725. INFO 2019-11-12 16:19:49,910 autoreload 597 Watching for file changes with StatReloader
  4726. INFO 2019-11-12 16:20:27,691 autoreload 597 Watching for file changes with StatReloader
  4727. WARNING 2019-11-12 16:22:12,626 log 228 Forbidden (CSRF cookie not set.): /invoice/
  4728. WARNING 2019-11-12 16:22:12,627 basehttp 154 "POST /invoice/ HTTP/1.1" 403 2868
  4729. INFO 2019-11-12 16:22:39,263 autoreload 597 Watching for file changes with StatReloader
  4730. INFO 2019-11-12 16:23:05,093 autoreload 597 Watching for file changes with StatReloader
  4731. WARNING 2019-11-12 16:23:21,755 log 228 Forbidden: /invoice/
  4732. WARNING 2019-11-12 16:23:21,755 basehttp 154 "POST /invoice/ HTTP/1.1" 403 21
  4733. INFO 2019-11-12 16:24:40,820 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  4734. INFO 2019-11-12 16:44:35,511 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  4735. ERROR 2019-11-12 16:44:51,952 log 228 Internal Server Error: /expectedpoperation/
  4736. Traceback (most recent call last):
  4737. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  4738. return self.cursor.execute(sql, params)
  4739. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  4740. return self.cursor.execute(sql, params)
  4741. pyodbc.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CHK_MAN' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CLS_DATE' 无效。 (207); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  4742. The above exception was the direct cause of the following exception:
  4743. Traceback (most recent call last):
  4744. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4745. response = get_response(request)
  4746. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4747. response = self.process_exception_by_middleware(e, request)
  4748. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4749. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4750. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4751. return self.dispatch(request, *args, **kwargs)
  4752. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4753. return handler(request, *args, **kwargs)
  4754. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4755. return func(*args, **kwds)
  4756. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 395, in post
  4757. row_usr = usr_data(USR, USR_NAME, datetime.datetime.strptime(RP_DD, '%Y-%m-%d'))
  4758. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\usr_data.py", line 13, in usr_data
  4759. cursor.execute("INSERT INTO SALM(SAL_NO,[NAME],USR,CHK_MAN,CLS_DATE,SYS_DATE)VALUES (%s,%s,'ADMIN','ADMIN',%s,%s)", [USR, USR_NAME,DATE,DATE])
  4760. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  4761. return super().execute(sql, params)
  4762. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  4763. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  4764. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  4765. return executor(sql, params, many, context)
  4766. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  4767. return self.cursor.execute(sql, params)
  4768. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__
  4769. raise dj_exc_value.with_traceback(traceback) from exc_value
  4770. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  4771. return self.cursor.execute(sql, params)
  4772. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  4773. return self.cursor.execute(sql, params)
  4774. django.db.utils.ProgrammingError: ('42S22', "[42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CHK_MAN' 无效。 (207) (SQLExecDirectW); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]列名 'CLS_DATE' 无效。 (207); [42S22] [Microsoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句。 (8180)")
  4775. ERROR 2019-11-12 16:44:51,956 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 133940
  4776. INFO 2019-11-12 16:48:07,723 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\usr_data.py changed, reloading.
  4777. INFO 2019-11-12 16:48:08,489 autoreload 597 Watching for file changes with StatReloader
  4778. INFO 2019-11-12 16:49:09,677 autoreload 597 Watching for file changes with StatReloader
  4779. INFO 2019-11-12 16:49:14,521 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 200 43
  4780. INFO 2019-11-12 16:51:02,232 autoreload 597 Watching for file changes with StatReloader
  4781. INFO 2019-11-12 17:01:00,950 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  4782. INFO 2019-11-12 17:01:01,942 autoreload 597 Watching for file changes with StatReloader
  4783. INFO 2019-11-12 17:05:43,200 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  4784. INFO 2019-11-12 17:05:44,417 autoreload 597 Watching for file changes with StatReloader
  4785. INFO 2019-11-12 17:06:24,227 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  4786. INFO 2019-11-12 17:06:25,264 autoreload 597 Watching for file changes with StatReloader
  4787. INFO 2019-11-12 17:09:35,337 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  4788. INFO 2019-11-12 17:09:36,256 autoreload 597 Watching for file changes with StatReloader
  4789. INFO 2019-11-12 17:10:12,277 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  4790. INFO 2019-11-12 17:10:13,064 autoreload 597 Watching for file changes with StatReloader
  4791. INFO 2019-11-12 17:11:18,793 autoreload 597 Watching for file changes with StatReloader
  4792. INFO 2019-11-12 17:13:01,256 autoreload 597 Watching for file changes with StatReloader
  4793. WARNING 2019-11-12 17:13:04,170 log 228 Forbidden: /expectedpoperation/
  4794. WARNING 2019-11-12 17:13:04,171 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24
  4795. WARNING 2019-11-12 17:13:11,723 log 228 Forbidden: /expectedpoperation/
  4796. WARNING 2019-11-12 17:13:11,725 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 21
  4797. INFO 2019-11-13 09:19:57,023 autoreload 597 Watching for file changes with StatReloader
  4798. WARNING 2019-11-13 09:21:04,056 log 228 Forbidden: /expectedpoperation/
  4799. WARNING 2019-11-13 09:21:04,056 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 30
  4800. ERROR 2019-11-13 09:21:16,725 log 228 Internal Server Error: /expectedpoperation/
  4801. Traceback (most recent call last):
  4802. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  4803. return self.cursor.execute(sql)
  4804. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  4805. return self.cursor.execute(sql, params)
  4806. pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  4807. The above exception was the direct cause of the following exception:
  4808. Traceback (most recent call last):
  4809. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4810. response = get_response(request)
  4811. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4812. response = self.process_exception_by_middleware(e, request)
  4813. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4814. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4815. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4816. return self.dispatch(request, *args, **kwargs)
  4817. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4818. return handler(request, *args, **kwargs)
  4819. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4820. return func(*args, **kwds)
  4821. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 388, in post
  4822. sum_CACC_NO=et_CACC_NO(CACC_NO)
  4823. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py", line 21, in et_CACC_NO
  4824. SUM_CACC_NO = cursor.execute(sql).fetchall()[0][0]
  4825. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  4826. return super().execute(sql, params)
  4827. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  4828. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  4829. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  4830. return executor(sql, params, many, context)
  4831. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  4832. return self.cursor.execute(sql, params)
  4833. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__
  4834. raise dj_exc_value.with_traceback(traceback) from exc_value
  4835. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  4836. return self.cursor.execute(sql)
  4837. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  4838. return self.cursor.execute(sql, params)
  4839. django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  4840. ERROR 2019-11-13 09:21:16,728 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 129920
  4841. INFO 2019-11-13 09:22:20,447 autoreload 597 Watching for file changes with StatReloader
  4842. ERROR 2019-11-13 09:22:24,316 log 228 Internal Server Error: /expectedpoperation/
  4843. Traceback (most recent call last):
  4844. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  4845. return self.cursor.execute(sql)
  4846. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  4847. return self.cursor.execute(sql, params)
  4848. pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  4849. The above exception was the direct cause of the following exception:
  4850. Traceback (most recent call last):
  4851. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4852. response = get_response(request)
  4853. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4854. response = self.process_exception_by_middleware(e, request)
  4855. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4856. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4857. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4858. return self.dispatch(request, *args, **kwargs)
  4859. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4860. return handler(request, *args, **kwargs)
  4861. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4862. return func(*args, **kwds)
  4863. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 388, in post
  4864. sum_CACC_NO=et_CACC_NO(CACC_NO)
  4865. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py", line 22, in et_CACC_NO
  4866. SUM_CACC_NO = cursor.execute(sql).fetchall()[0][0]
  4867. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  4868. return super().execute(sql, params)
  4869. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  4870. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  4871. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  4872. return executor(sql, params, many, context)
  4873. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  4874. return self.cursor.execute(sql, params)
  4875. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__
  4876. raise dj_exc_value.with_traceback(traceback) from exc_value
  4877. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  4878. return self.cursor.execute(sql)
  4879. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  4880. return self.cursor.execute(sql, params)
  4881. django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  4882. ERROR 2019-11-13 09:22:24,319 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 129926
  4883. WARNING 2019-11-13 09:22:54,159 log 228 Forbidden: /expectedpoperation/
  4884. WARNING 2019-11-13 09:22:54,160 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 30
  4885. INFO 2019-11-13 09:23:11,800 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py changed, reloading.
  4886. INFO 2019-11-13 09:23:12,555 autoreload 597 Watching for file changes with StatReloader
  4887. INFO 2019-11-13 09:23:18,851 autoreload 597 Watching for file changes with StatReloader
  4888. WARNING 2019-11-13 09:23:21,004 log 228 Forbidden: /expectedpoperation/
  4889. WARNING 2019-11-13 09:23:21,004 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 30
  4890. ERROR 2019-11-13 09:23:29,487 log 228 Internal Server Error: /expectedpoperation/
  4891. Traceback (most recent call last):
  4892. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  4893. return self.cursor.execute(sql)
  4894. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  4895. return self.cursor.execute(sql, params)
  4896. pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  4897. The above exception was the direct cause of the following exception:
  4898. Traceback (most recent call last):
  4899. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4900. response = get_response(request)
  4901. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4902. response = self.process_exception_by_middleware(e, request)
  4903. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4904. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4905. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4906. return self.dispatch(request, *args, **kwargs)
  4907. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4908. return handler(request, *args, **kwargs)
  4909. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4910. return func(*args, **kwds)
  4911. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 388, in post
  4912. sum_CACC_NO=et_CACC_NO(CACC_NO)
  4913. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py", line 22, in et_CACC_NO
  4914. SUM_CACC_NO = cursor.execute(sql).fetchall()[0][0]
  4915. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  4916. return super().execute(sql, params)
  4917. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  4918. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  4919. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  4920. return executor(sql, params, many, context)
  4921. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  4922. return self.cursor.execute(sql, params)
  4923. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\utils.py", line 89, in __exit__
  4924. raise dj_exc_value.with_traceback(traceback) from exc_value
  4925. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
  4926. return self.cursor.execute(sql)
  4927. File "C:\Users\12446\Envs\ceshi\lib\site-packages\sql_server\pyodbc\base.py", line 536, in execute
  4928. return self.cursor.execute(sql, params)
  4929. django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'=' 附近有语法错误。 (102) (SQLExecDirectW)")
  4930. ERROR 2019-11-13 09:23:29,490 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 129912
  4931. INFO 2019-11-13 09:23:58,046 autoreload 597 Watching for file changes with StatReloader
  4932. ERROR 2019-11-13 09:24:00,932 log 228 Internal Server Error: /expectedpoperation/
  4933. Traceback (most recent call last):
  4934. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4935. response = get_response(request)
  4936. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4937. response = self.process_exception_by_middleware(e, request)
  4938. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4939. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4940. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4941. return self.dispatch(request, *args, **kwargs)
  4942. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4943. return handler(request, *args, **kwargs)
  4944. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4945. return func(*args, **kwds)
  4946. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 389, in post
  4947. if sum_CACC_NO <=0:
  4948. TypeError: '<=' not supported between instances of 'HttpResponseForbidden' and 'int'
  4949. ERROR 2019-11-13 09:24:00,933 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 85820
  4950. INFO 2019-11-13 09:26:39,132 autoreload 597 Watching for file changes with StatReloader
  4951. ERROR 2019-11-13 09:26:56,637 log 228 Internal Server Error: /expectedpoperation/
  4952. Traceback (most recent call last):
  4953. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4954. response = get_response(request)
  4955. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4956. response = self.process_exception_by_middleware(e, request)
  4957. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4958. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4959. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4960. return self.dispatch(request, *args, **kwargs)
  4961. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4962. return handler(request, *args, **kwargs)
  4963. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4964. return func(*args, **kwds)
  4965. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post
  4966. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  4967. IndexError: list index out of range
  4968. ERROR 2019-11-13 09:26:56,641 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86319
  4969. INFO 2019-11-13 09:28:39,553 autoreload 597 Watching for file changes with StatReloader
  4970. ERROR 2019-11-13 09:28:42,917 log 228 Internal Server Error: /expectedpoperation/
  4971. Traceback (most recent call last):
  4972. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4973. response = get_response(request)
  4974. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4975. response = self.process_exception_by_middleware(e, request)
  4976. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4977. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4978. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4979. return self.dispatch(request, *args, **kwargs)
  4980. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  4981. return handler(request, *args, **kwargs)
  4982. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  4983. return func(*args, **kwds)
  4984. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post
  4985. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  4986. IndexError: list index out of range
  4987. ERROR 2019-11-13 09:28:42,918 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  4988. INFO 2019-11-13 09:29:10,905 autoreload 597 Watching for file changes with StatReloader
  4989. ERROR 2019-11-13 09:29:15,364 log 228 Internal Server Error: /expectedpoperation/
  4990. Traceback (most recent call last):
  4991. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  4992. response = get_response(request)
  4993. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  4994. response = self.process_exception_by_middleware(e, request)
  4995. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  4996. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  4997. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  4998. return self.dispatch(request, *args, **kwargs)
  4999. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  5000. return handler(request, *args, **kwargs)
  5001. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  5002. return func(*args, **kwds)
  5003. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post
  5004. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  5005. IndexError: list index out of range
  5006. ERROR 2019-11-13 09:29:15,365 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  5007. INFO 2019-11-13 09:32:18,835 autoreload 597 Watching for file changes with StatReloader
  5008. ERROR 2019-11-13 09:32:22,715 log 228 Internal Server Error: /expectedpoperation/
  5009. Traceback (most recent call last):
  5010. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  5011. response = get_response(request)
  5012. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  5013. response = self.process_exception_by_middleware(e, request)
  5014. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  5015. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  5016. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  5017. return self.dispatch(request, *args, **kwargs)
  5018. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  5019. return handler(request, *args, **kwargs)
  5020. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  5021. return func(*args, **kwds)
  5022. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 406, in post
  5023. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  5024. IndexError: list index out of range
  5025. ERROR 2019-11-13 09:32:22,717 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  5026. INFO 2019-11-13 09:34:12,207 autoreload 597 Watching for file changes with StatReloader
  5027. ERROR 2019-11-13 09:34:15,270 log 228 Internal Server Error: /expectedpoperation/
  5028. Traceback (most recent call last):
  5029. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  5030. response = get_response(request)
  5031. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  5032. response = self.process_exception_by_middleware(e, request)
  5033. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  5034. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  5035. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  5036. return self.dispatch(request, *args, **kwargs)
  5037. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  5038. return handler(request, *args, **kwargs)
  5039. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  5040. return func(*args, **kwds)
  5041. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 408, in post
  5042. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  5043. IndexError: list index out of range
  5044. ERROR 2019-11-13 09:34:15,272 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  5045. INFO 2019-11-13 09:34:43,791 autoreload 597 Watching for file changes with StatReloader
  5046. ERROR 2019-11-13 09:34:48,049 log 228 Internal Server Error: /expectedpoperation/
  5047. Traceback (most recent call last):
  5048. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  5049. response = get_response(request)
  5050. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  5051. response = self.process_exception_by_middleware(e, request)
  5052. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  5053. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  5054. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  5055. return self.dispatch(request, *args, **kwargs)
  5056. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  5057. return handler(request, *args, **kwargs)
  5058. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  5059. return func(*args, **kwds)
  5060. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post
  5061. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  5062. IndexError: list index out of range
  5063. ERROR 2019-11-13 09:34:48,050 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  5064. INFO 2019-11-13 09:35:15,342 autoreload 597 Watching for file changes with StatReloader
  5065. ERROR 2019-11-13 09:35:18,687 log 228 Internal Server Error: /expectedpoperation/
  5066. Traceback (most recent call last):
  5067. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  5068. response = get_response(request)
  5069. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  5070. response = self.process_exception_by_middleware(e, request)
  5071. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  5072. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  5073. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  5074. return self.dispatch(request, *args, **kwargs)
  5075. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  5076. return handler(request, *args, **kwargs)
  5077. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  5078. return func(*args, **kwds)
  5079. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post
  5080. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  5081. IndexError: list index out of range
  5082. ERROR 2019-11-13 09:35:18,689 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  5083. INFO 2019-11-13 09:35:41,580 autoreload 597 Watching for file changes with StatReloader
  5084. ERROR 2019-11-13 09:35:45,021 log 228 Internal Server Error: /expectedpoperation/
  5085. Traceback (most recent call last):
  5086. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  5087. response = get_response(request)
  5088. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  5089. response = self.process_exception_by_middleware(e, request)
  5090. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  5091. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  5092. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  5093. return self.dispatch(request, *args, **kwargs)
  5094. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  5095. return handler(request, *args, **kwargs)
  5096. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  5097. return func(*args, **kwds)
  5098. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post
  5099. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  5100. IndexError: list index out of range
  5101. ERROR 2019-11-13 09:35:45,024 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  5102. INFO 2019-11-13 09:36:21,091 autoreload 597 Watching for file changes with StatReloader
  5103. ERROR 2019-11-13 09:36:25,861 log 228 Internal Server Error: /expectedpoperation/
  5104. Traceback (most recent call last):
  5105. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  5106. response = get_response(request)
  5107. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  5108. response = self.process_exception_by_middleware(e, request)
  5109. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  5110. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  5111. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  5112. return self.dispatch(request, *args, **kwargs)
  5113. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  5114. return handler(request, *args, **kwargs)
  5115. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  5116. return func(*args, **kwds)
  5117. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post
  5118. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  5119. IndexError: list index out of range
  5120. ERROR 2019-11-13 09:36:25,862 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86514
  5121. INFO 2019-11-13 09:37:08,687 autoreload 597 Watching for file changes with StatReloader
  5122. ERROR 2019-11-13 09:37:12,871 log 228 Internal Server Error: /expectedpoperation/
  5123. Traceback (most recent call last):
  5124. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  5125. response = get_response(request)
  5126. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  5127. response = self.process_exception_by_middleware(e, request)
  5128. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  5129. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  5130. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  5131. return self.dispatch(request, *args, **kwargs)
  5132. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  5133. return handler(request, *args, **kwargs)
  5134. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  5135. return func(*args, **kwds)
  5136. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 409, in post
  5137. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  5138. IndexError: list index out of range
  5139. ERROR 2019-11-13 09:37:12,872 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86462
  5140. INFO 2019-11-13 09:37:32,747 autoreload 597 Watching for file changes with StatReloader
  5141. WARNING 2019-11-13 09:37:36,237 log 228 Forbidden: /expectedpoperation/
  5142. WARNING 2019-11-13 09:37:36,237 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24
  5143. INFO 2019-11-13 09:38:12,641 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  5144. INFO 2019-11-13 09:38:13,462 autoreload 597 Watching for file changes with StatReloader
  5145. WARNING 2019-11-13 09:38:22,592 log 228 Forbidden: /expectedpoperation/
  5146. WARNING 2019-11-13 09:38:22,592 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 24
  5147. INFO 2019-11-13 09:39:04,964 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  5148. INFO 2019-11-13 09:39:05,745 autoreload 597 Watching for file changes with StatReloader
  5149. INFO 2019-11-13 09:39:17,523 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py changed, reloading.
  5150. INFO 2019-11-13 09:39:18,229 autoreload 597 Watching for file changes with StatReloader
  5151. INFO 2019-11-13 09:39:25,431 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  5152. INFO 2019-11-13 09:39:26,303 autoreload 597 Watching for file changes with StatReloader
  5153. INFO 2019-11-13 09:39:26,970 autoreload 597 Watching for file changes with StatReloader
  5154. INFO 2019-11-13 09:39:31,533 autoreload 597 Watching for file changes with StatReloader
  5155. ERROR 2019-11-13 09:39:34,146 log 228 Internal Server Error: /expectedpoperation/
  5156. Traceback (most recent call last):
  5157. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
  5158. response = get_response(request)
  5159. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
  5160. response = self.process_exception_by_middleware(e, request)
  5161. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
  5162. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  5163. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 71, in view
  5164. return self.dispatch(request, *args, **kwargs)
  5165. File "C:\Users\12446\Envs\ceshi\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
  5166. return handler(request, *args, **kwargs)
  5167. File "e:\12446\appdata\Lib\contextlib.py", line 52, in inner
  5168. return func(*args, **kwds)
  5169. File "E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py", line 408, in post
  5170. Acc_No_km = cursor.execute("""SELECT ISNULL(Acc_No,'') FROM BACC WHERE BACC_NO=%s""", [CACC_NO]).fetchall()[0][0]
  5171. IndexError: list index out of range
  5172. ERROR 2019-11-13 09:39:34,149 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 500 86520
  5173. INFO 2019-11-13 09:40:22,867 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\PaymentOperation\views.py changed, reloading.
  5174. INFO 2019-11-13 09:40:23,643 autoreload 597 Watching for file changes with StatReloader
  5175. INFO 2019-11-13 09:40:37,698 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\utils\et_CACC_NO.py changed, reloading.
  5176. INFO 2019-11-13 09:40:38,412 autoreload 597 Watching for file changes with StatReloader
  5177. WARNING 2019-11-13 09:40:43,633 log 228 Forbidden: /expectedpoperation/
  5178. WARNING 2019-11-13 09:40:43,633 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 57
  5179. WARNING 2019-11-13 09:40:50,145 log 228 Forbidden: /expectedpoperation/
  5180. WARNING 2019-11-13 09:40:50,146 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 57
  5181. WARNING 2019-11-13 09:40:53,502 log 228 Forbidden: /expectedpoperation/
  5182. WARNING 2019-11-13 09:40:53,502 basehttp 154 "POST /expectedpoperation/ HTTP/1.1" 403 57
  5183. INFO 2019-11-13 09:48:22,677 autoreload 217 E:\12446\PycharmProjects\wangli\wanjia\awj\awj\apps\salesinvoice\views.py changed, reloading.
  5184. INFO 2019-11-13 09:48:23,417 autoreload 597 Watching for file changes with StatReloader
  5185. >>>>>>> 9ef74b8a8327dc14dd5b9d31dabf1eaf7e92f2ab