How do I write combined (enumerated) lists in excel via django -


I'm trying to make a program using Python and published a table of generated primers in an Excel spreadsheet Django for Currently, it successfully creates a workbook with the workbook, but it does not write primers and relatable fields in cells. I am thinking that someone can give me a hand, I am really grateful.

Below is part of my relayment code.

  Primera [key] filtered = primerAList PrimerB [key] = filtered_primerBList WB = xlwt.Workbook () WS1 = wb.add_sheet ( 'Primera') WS2 = wb.add_sheet ( 'PrimerB' ) iterate_Ct_rownum = 0 iterate_Ga_rownum = 0 for key sequence_keylist: the #dictionary, sublist (Primera [the key to all sequennces for ROWNUM count]): ws1.write column (iterate_PrimerA_rownum, 0, keys), calculate the value in (sublist): WS1 to .write (iterate_PrimerA_rownum, column +1 value) iterate_PrimerA_rownum + sublist (complete_nested_dic_Ga [= 1 calculated for ROWNUM, key]): ws2.write (iterate_PrimerB_rownum, 0, key) column, Of The Census (sublist) Price: WS2. Write (Iterate_PrimerB_rownum, column +1 value) iterate_PrimerB_rownum + = 1 return HttpResponse (open ( 'Filekxls',' r '). Read (), mime-type = "application / ms-excel') reaction #return (Open (Read "Filekxls ',' r '). () # mIME type =" application / ms-excel')  

this command works fine on lin e. But I can not get it to work in my own app in our app. Any help will be very much appreciated.


Comments