Re: Django export the CSV file of objects form databas

2014-05-21 Thread hito koto
Ok, thank you! 2014年5月21日水曜日 15時04分09秒 UTC+9 Erik Cederstrand: > > Den 21/05/2014 kl. 05.21 skrev hito koto >: > > > > Hello, > > > > I have the following errors: why append is not done? > > > > row = [[0 for i in range(5)] for i in range(31)] > > Here you are creating a list of lists of

Re: Django export the CSV file of objects form databas

2014-05-20 Thread Erik Cederstrand
Den 21/05/2014 kl. 05.21 skrev hito koto : > Hello, > > I have the following errors: why append is not done? > > row = [[0 for i in range(5)] for i in range(31)] Here you are creating a list of lists of 0's (a 2-dimensional matrix of ints). > for a in obj_all.filter().values_list('user

Django export the CSV file of objects form databas

2014-05-20 Thread hito koto
Hello, I have the following errors: why append is not done? AttributeError at /export_excel/ 'int' object has no attribute 'append' Request Method: GET Request URL: http://article/export_excel/ Django Version: 1.6.2 Exception Type: AttributeError Exception Value: 'int' object has no at