Hi
I want to try import some data to certain table, my database is the default
one(sqlite).
Since i don't now what kind of information i should put in the csv file, i
inserted some data using admin interface, then exported to csv file.
Then i removed all the data in the target table then reimport using the csv
file, but the result were only None for whole fields, only the id field was
incremented
These are my sample data.
prefecture.id prefecture.name prefecture.name_en prefecture.name_kana 1
北海道 Hokkaido ほっかいどう 2 青森県 Aomori あおもり
My table definition:
db.define_table('prefecture',
Field('name', unique=True),
Field('name_en', unique=True),
Field('name_kana', unique=True),
format='%(name)s')
Result:
prefecture.idprefecture.nameprefecture.name_enprefecture.name_kana1NoneNone
None
2None
None
None
Did i miss something?
Regards,
Reza
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.