Re: Django export csv

2014-05-25 Thread hito koto
Hi, Lachlan Musicman Was helpful , Thanks 2014年5月26日月曜日 11時33分14秒 UTC+9 Lachlan Musicman: > > If you are using a var in an array or list: > > array[1] > array[2] > array[3] > > so if you have > x = datetime.datetime.now() > array[x] > > you would get a similar error. > > The x needs to

Re: Django export csv

2014-05-25 Thread Lachlan Musicman
If you are using a var in an array or list: array[1] array[2] array[3] so if you have x = datetime.datetime.now() array[x] you would get a similar error. The x needs to be an integer. cheers L. On 26 May 2014 11:50, hito koto wrote: > Hello, > I have the errors is

Django export csv

2014-05-25 Thread hito koto
Hello, I have the errors is TypeError: 'long' object is unsubscriptable What is subscriptable? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Django export CSV file of two objects

2014-05-15 Thread hito koto
Hi, i also write the views but the column was freaking After output to excel in this code. def export_excel(request): response = HttpResponse(mimetype='application/vnd.ms-excel; charset="Shift_JIS"') response['Content-Disposition'] = 'attachment; filename=file.csv' writer =

Django export CSV file of two objects

2014-05-15 Thread hito koto
Hello, I want to export file from database and from two objects; I'm use MYSQL, I have two objects: 1, attendance object: 2. get_work object: I now can export one object's datas; So, i how can export datas of two objects; My the views.py is here: def export_excel(request): response =