From 575fb95b2dbc1eab52830d42e20997b3b45bad5f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 29 Nov 2012 23:27:25 +0100 Subject: Documentation: add CLI explanation in import/export --- docs/import_export.rst | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'docs') diff --git a/docs/import_export.rst b/docs/import_export.rst index eb581ce..bc422b1 100644 --- a/docs/import_export.rst +++ b/docs/import_export.rst @@ -137,6 +137,16 @@ the **Import** action and validate. The import should be processing normally. If not, an explicit error message should be printed in the state column of your import. +You can also launch imports with the CLI (ideal for crontab jobs). In the +project directory you only need to launch the command:: + + ./manage.py chimere_import + +- *import_id* is the import ID + +If you launch the command without *import_id* the list of imports available is +presented and you can choose one. + Managing imported data ********************** @@ -159,6 +169,21 @@ Directly from the :ref:`geographic items list ` you can export to the chosen format. All you have to do is to select the desired items, choose the appropriate action in the action list and validate. +You can also launch exports with the CLI (ideal for crontab jobs). In the +project directory you only need to launch the command:: + + ./manage.py chimere_export \ + + +- *subcategory_id* is the ID of the chosen subcategory +- *CSV|KML|SHP* is the chosen format +- *marker|route* is to get marker or route +- *filename* is the output filename + +If you launch the command without arguments you will be prompted for the choice +to make for your export. + + Export to OSM ************* -- cgit v1.2.3