Django export csv

21 views
Skip to first unread message

hito koto

unread,
May 25, 2014, 9:50:03 PM5/25/14
to django...@googlegroups.com
Hello,
I have the errors is TypeError: 'long' object is unsubscriptable
What is subscriptable?

Lachlan Musicman

unread,
May 25, 2014, 10:33:14 PM5/25/14
to django...@googlegroups.com
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.
> --
> 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 django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/38ed3e19-e3c8-438e-95cd-54fbdc322694%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
The idea is that a beautiful image is frameable. Everything you need
to see is there: It’s everything you want, and it’s very pleasing
because there’s no extra information that you don’t get to see.
Everything’s in a nice package for you. But sublime art is
unframeable: It’s an image or idea that implies that there’s a bigger
image or idea that you can’t see: You’re only getting to look at a
fraction of it, and in that way it’s both beautiful and scary, because
it’s reminding you that there’s more that you don’t have access to.
It’s now sort of left the piece itself and it’s become your own
invention, so it’s personal as well as being scary as well as being
beautiful, which is what I really like about art like that.
-----------------------------------------------------------------------------------------------------------
Adventure Time http://theholenearthecenteroftheworld.com/

hito koto

unread,
May 25, 2014, 10:43:04 PM5/25/14
to django...@googlegroups.com
Hi, Lachlan Musicman
 Was  helpful , Thanks

2014年5月26日月曜日 11時33分14秒 UTC+9 Lachlan Musicman:
Reply all
Reply to author
Forward
0 new messages