i use remote_api to load data from google-app-engine.
appcfg.py download_data --config_file=helloworld/GreetingLoad.py --filename=a.csv --kind=Greeting helloworld
the setting is:
class AlbumExporter(bulkloader.Exporter):
def __init__(self):
bulkloader.Exporter.__init__(self, 'Greeting',
[('author', str, None),
('content', str, None),
('date', str, None),
])
exporters = [AlbumExporter]
and i download a.csv is :
the date is not readable ,
and the date in appspot.com admin is :
so how to get the full date ??
thanks
i change this :
class AlbumExporter(bulkloader.Exporter):
def __init__(self):
bulkloader.Exporter.__init__(self, 'Greeting',
[('author', str, None),
('content', str, None),
('date', lambda x: datetime.datetime.strptime(x, '%m/%d/%Y').date(), None),
])
exporters = [AlbumExporter]
but the error is :