On 9/19/07, jacoberg2 <[EMAIL PROTECTED]> wrote:
>
> Hey, I am trying to read a string from a file and then save it to the
> database. In doing so I get the error message 'str' has no attribute
> 'strftime'. the string is a a dat that i am trying to save to the
> datetimefield in my database. The parser i used returned a string but
> hen it tries to save this string tothe appropiate place it send that
> error back. any suggestions? Thanks for your time.

What version of Django are you using? This bug (or something very much
like it) was fixed over the weekend sprint, so it shouldn't be a
problem any more in the SVN trunk version. If it is, we may need to
reopen a ticket.

As a side note - part of the problem is that datetime fields are
supposed to accept DateTime objects, not strings. As a result of the
change on the weekend, strings that are correctly formatted (by which
I mean 'ready for DB-API insertion', in the format '%Y-%m-%d
%H:%M:%S') are also accepted, but any other format will still cause
difficulties.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to