Hi all,
I have the a from with the following validated data posted to itself
(copied from the POST section on the error page):
cr u'008'
description u'asdfs'
file u'suus'
I am trying to save it to the database. The variable names are the
same as the column names in the database. How can i go about this? I
tried various things with .save(), but that didn't work yet.
I also tried doing it using cursor.execute (with only one value for a
start) but that resulted in the error ''unicode' object has no
attribute 'items''. I used this statement:
cursor.execute("insert cr into editor.conffile values('%s')", cd['cr'])
The following failed with "global name 'cr' is not defined"
cursor.execute("insert cr into editor.conffile values('%s')", cr)
Thanks in advance for your help!
Jon.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---