doc/source/commandes.rst
branchdocumentation
changeset 693 09e00f38d177
child 695 f151478c7628
equal deleted inserted replaced
692:b7d19cd87fcf 693:09e00f38d177
       
     1 #######################################
       
     2 Commandes d'administration HDABo/HDALab
       
     3 #######################################
       
     4 
       
     5 Le projet HDA fournis un ensemble de commande d'administration permettant de maintenir l'état de l'application.
       
     6 Ces commandes utilise le `système d'administration en ligne de commande de Django <https://docs.djangoproject.com/en/1.8/howto/custom-management-commands/>`_.
       
     7 L'usage des commande est en général le suivant:
       
     8 
       
     9 ```
       
    10 django-admin <subcommand> [options] [arguments...]
       
    11 ```
       
    12 
       
    13 Chaque commande implémente ses options et arguments.
       
    14 Toutes les commandes du projet accèptent les options suivante:
       
    15 
       
    16   - *\-\-version* : montre le numeero de version et quitte.
       
    17   - *\-h, \-\-help* : montre le message d'aide et quitte.
       
    18   - *\-v VERBOSITY, \-\-verbosity=VERBOSITY* : Niveau de verbosité; 0=minimal, 1=normal, 2=verbeux, 3=très verbeux
       
    19   - *\-\-settings=SETTINGS* : Le chemin Python vers un module de `settings`. Si il n'est pas fourni, la variable d'environement DJANGO_SETTINGS_MODULE sera utilisée.
       
    20   - *\-\-pythonpath=PYTHONPATH* : un répertoire à ajouter au chemins Python (`Python path <https://docs.python.org/2/using/cmdline.html#envvar-PYTHONPATH>`_)
       
    21   - *\-\-traceback* : Lève des exceptions `CommandError`.
       
    22   - *\-\-no-color* : Ne colorise pas la sortie de la commande.
       
    23 
       
    24 Les options spécifiques sont doumentées pour chaque commande.
       
    25 
       
    26 
       
    27 Voici la liste des commandes hdalab:
       
    28 
       
    29     - :ref:`commands-hdalab-calculate-preview`
       
    30     - :ref:`commands-hdalab-export-tags-csv`
       
    31     - :ref:`commands-hdalab-export-wpcategory-csv`
       
    32     - :ref:`commands-hdalab-fill-tag-years`
       
    33     - :ref:`commands-hdalab-geojson-transform`
       
    34     - :ref:`commands-hdalab-import-hda-insee-csv`
       
    35     - :ref:`commands-hdalab-import-hdabo-db`
       
    36     - :ref:`commands-hdalab-import-insee-csv`
       
    37     - :ref:`commands-hdalab-query-category-inclusion`
       
    38     - :ref:`commands-hdalab-query-dbpedia`
       
    39     - :ref:`commands-hdalab-query-geo-inclusion`
       
    40     - :ref:`commands-hdalab-query-wikipedia-category`
       
    41     - :ref:`commands-hdalab-send-moderation-mail`
       
    42 
       
    43 et la liste des commandes hdabo:
       
    44 
       
    45     - :ref:`commands-hdabo-clean-tags`
       
    46     - :ref:`commands-hdabo-diff-csv`
       
    47     - :ref:`commands-hdabo-import-csv`
       
    48     - :ref:`commands-hdabo-import-rdf`
       
    49     - :ref:`commands-hdabo-import-tag-popularity`
       
    50     - :ref:`commands-hdabo-order-tags`
       
    51     - :ref:`commands-hdabo-query-wikipedia`
       
    52 
       
    53 Il est à noter que ce dans cette dernière liste seule la commande :ref:`commands-hdabo-import-rdf` est utilisée régulièrement pour importer les données HDA dans HDALab.
       
    54 
       
    55 
       
    56 Commandes hdabo
       
    57 ===============
       
    58 
       
    59 .. _commands-hdabo-clean-tags:
       
    60 
       
    61 clean\_tags
       
    62 -----------
       
    63 
       
    64 .. automodule:: hdabo.management.commands.clean_tags
       
    65 
       
    66 
       
    67 .. _commands-hdabo-diff-csv:
       
    68 
       
    69 diff\_csv
       
    70 ---------
       
    71 
       
    72 .. automodule:: hdabo.management.commands.diff_csv
       
    73 
       
    74 
       
    75 
       
    76 .. _commands-hdabo-import-csv:
       
    77 
       
    78 import\_csv
       
    79 -----------
       
    80 
       
    81 .. automodule:: hdabo.management.commands.import_csv
       
    82 
       
    83 
       
    84 .. _commands-hdabo-import-rdf:
       
    85 
       
    86 import\_rdf
       
    87 -----------
       
    88 
       
    89 .. automodule:: hdabo.management.commands.import_rdf
       
    90 
       
    91 
       
    92 .. _commands-hdabo-import-tag-popularity:
       
    93 
       
    94 import\_tag\_popularity
       
    95 -----------------------
       
    96 
       
    97 .. automodule:: hdabo.management.commands.import_tag_popularity
       
    98 
       
    99 
       
   100 .. _commands-hdabo-order-tags:
       
   101 
       
   102 order\_tags
       
   103 -----------
       
   104 
       
   105 .. automodule:: hdabo.management.commands.order_tags
       
   106 
       
   107 
       
   108 
       
   109 .. _commands-hdabo-query-wikipedia:
       
   110 
       
   111 query\_wikipedia
       
   112 ----------------
       
   113 
       
   114 .. automodule:: hdabo.management.commands.query_wikipedia
       
   115 
       
   116 
       
   117 
       
   118 Commandes hdalab
       
   119 ================
       
   120 
       
   121 .. _commands-hdalab-calculate-preview:
       
   122 
       
   123 calculate\_preview
       
   124 ------------------
       
   125 
       
   126 .. automodule:: hdalab.management.commands.calculate_preview
       
   127 
       
   128 
       
   129 .. _commands-hdalab-export-tags-csv:
       
   130 
       
   131 export\_tags\_csv
       
   132 -----------------
       
   133 
       
   134 .. automodule:: hdalab.management.commands.export_tags_csv
       
   135 
       
   136 
       
   137 .. _commands-hdalab-export-wpcategory-csv:
       
   138 
       
   139 export\_wpcategory\_csv
       
   140 -----------------------
       
   141 
       
   142 .. automodule:: hdalab.management.commands.export_wpcategory_csv
       
   143 
       
   144 
       
   145 .. _commands-hdalab-fill-tag-years:
       
   146 
       
   147 fill\_tag\_years
       
   148 ----------------
       
   149 
       
   150 .. automodule:: hdalab.management.commands.fill_tag_years
       
   151 
       
   152 
       
   153 .. _commands-hdalab-geojson-transform:
       
   154 
       
   155 geojson\_transform
       
   156 ------------------
       
   157 
       
   158 .. automodule:: hdalab.management.commands.geojson_transform
       
   159 
       
   160 
       
   161 
       
   162 .. _commands-hdalab-import-hda-insee-csv:
       
   163 
       
   164 import\_hda\_insee\_csv
       
   165 -----------------------
       
   166 
       
   167 .. automodule:: hdalab.management.commands.import_hda_insee_csv
       
   168 
       
   169 
       
   170 .. _commands-hdalab-import-hdabo-db:
       
   171 
       
   172 import\_hdabo\_db
       
   173 -----------------
       
   174 
       
   175 .. automodule:: hdalab.management.commands.import_hdabo_db
       
   176 
       
   177 
       
   178 .. _commands-hdalab-import-insee-csv:
       
   179 
       
   180 import\_insee\_csv
       
   181 ------------------
       
   182 
       
   183 .. automodule:: hdalab.management.commands.import_insee_csv
       
   184 
       
   185 
       
   186 
       
   187 .. _commands-hdalab-query-category-inclusion:
       
   188 
       
   189 query\_category\_inclusion
       
   190 --------------------------
       
   191 
       
   192 .. automodule:: hdalab.management.commands.query_category_inclusion
       
   193 
       
   194 
       
   195 .. _commands-hdalab-query-dbpedia:
       
   196 
       
   197 query\_dbpedia
       
   198 --------------
       
   199 
       
   200 .. automodule:: hdalab.management.commands.query_dbpedia
       
   201 
       
   202 
       
   203 
       
   204 .. _commands-hdalab-query-geo-inclusion:
       
   205 
       
   206 query\_geo\_inclusion
       
   207 ---------------------
       
   208 
       
   209 .. automodule:: hdalab.management.commands.query_geo_inclusion
       
   210 
       
   211 
       
   212 .. _commands-hdalab-query-wikipedia-category:
       
   213 
       
   214 query\_wikipedia\_category
       
   215 --------------------------
       
   216 
       
   217 .. automodule:: hdalab.management.commands.query_wikipedia_category
       
   218 
       
   219 
       
   220 
       
   221 .. _commands-hdalab-send-moderation-mail:
       
   222 
       
   223 send\_moderation\_mail
       
   224 ----------------------
       
   225 
       
   226 .. automodule:: hdalab.management.commands.send_moderation_mail