-
Notifications
You must be signed in to change notification settings - Fork 7
Bulk import of tags and documents
Daniele Guido edited this page Jun 2, 2017
·
1 revision
Among other things, the task
custom management command allow bulk import of tags and documents directly from google spreadsheet documents. Note that not to mess around with OAUTH authentification, the google spreadsheet must be publicly visible (at least by link).
To know more about django custom commands, ref to the official documentation
The task
named bulk_import_gs_as_tags
requires two parameters plus one optional:
param | type | example |
---|---|---|
url |
url string | https://docs.google.com/spreadsheets/d/*your-gid*/edit#gid=0 |
sheet |
string | miller |
cache |
boolean | True (default:False) |
cd miller
workon miller
python manage.py task bulk_import_gs_as_tags --url=https://docs.google.com/spreadsheets/d/<your-gid>/edit#gid=0 --sheet=<sheetname>
University of Luxembourg
test