python manage.py packages -o export_business_data -d 'path_to_destination_directory' -f 'csv' -c 'path_to_mapping_file' -single_file
In our case, more specifically, our command looks like this:
python manage.py packages -o export_business_data -d /home/ubuntu/Projects/my_project/export -f csv -c /home/ubuntu/Projects/my_project/export/HISTORIC\ PLACE\ MODEL.mapping -single_file
A file is exported, but only a CSV file that lists all of our individual resource models unique UUIDs, and not the business data content of each entry. We get the same type of file that only lists the UUIDs when we Export the Search Results as a CSV file within our instance (via the web site).
JSON option:
When we use this command to export it in a JSON format:
python manage.py packages -o export_business_data -d /home/ubuntu/Projects/my_project/export -f json -g 35239e1c-8f08-11ea-87aa-0671b4d8958a
Exporting the business data as a JSON file seems to work correctly, and includes all of the content, but we would like to have it in a CSV file in order to look at options to upload data for hundreds of sites that we have in an existing excel file.
Hope this is somewhat clear, and any help or guidance is appreciated.
Thanks,
Christian