Skip to content

Commit

Permalink
Complete IMPORT doc
Browse files Browse the repository at this point in the history
  • Loading branch information
camillemonchicourt committed May 19, 2017
1 parent 22eadff commit f929b71
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/import.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ IMPORT FROM SIT
===============


Configure SITRA import
----------------------
Configure APIDAE (ex-SITRA) import
----------------------------------

To import touristic content from SITRA, create a ``bulkimport/parsers.py`` file with the following content:
To import touristic content from APIDAE (ex-SITRA), create a ``bulkimport/parsers.py`` file with the following content:

::

Expand All @@ -26,13 +26,15 @@ To import touristic content from SITRA, create a ``bulkimport/parsers.py`` file
Then set up appropriate values:

* ``label`` at your convenience,
* ``api_key``, ``project_id`` and ``selection_id`` according to your SITRA configuration,
* ``api_key``, ``project_id`` and ``selection_id`` according to your APIDAE (ex-SITRA) configuration,
* ``category``, ``type1`` and ``type2`` to select in which Geotrek category/type imported objects should go (types are optional),
* rename the class ``HebergementParser`` if need be.

You can duplicate the class. Each class must have a different name.
Don't forget the u character before strings if they contain non-ascii characters.

To apply changes, you may have to run ``sudo supervisorctl restart all``.

Configure Marque Esprit Parc import
-----------------------------------

Expand Down

0 comments on commit f929b71

Please sign in to comment.