web/hdalab/management/commands/import_hdabo_db.py
changeset 228 92d733f0d179
parent 227 b0cd3e6e31c7
child 230 2185b943cabd
--- a/web/hdalab/management/commands/import_hdabo_db.py	Fri Aug 17 18:18:10 2012 +0200
+++ b/web/hdalab/management/commands/import_hdabo_db.py	Fri Aug 17 18:42:42 2012 +0200
@@ -29,17 +29,27 @@
         else:
             data_path = args[0]
         
+        print("===========  MIGRATE ===========")
         call_command('migrate')
         if options.get('categories', False):
+            print("===========  QUERY WIKIPEDIA CATEGORY ===========")
             call_command('query_wikipedia_category')
-                
+
+        print("===========  QUERY DBPEDIA ===========")                
         call_command('query_dbpedia')
+        print("===========  FILL TAG YEAR ===========")
         call_command('fill_tag_years')
+        print("===========  GEOJSON TRANSFORM ===========")
         call_command('geojson_transform', os.path.join(data_path,'countries.geo.json'))
+        print("===========  QUERY GEO INCLUSION ===========")
         call_command('query_geo_inclusion')
+        print("===========  IMPORT INSEE CSV PASS 1 ===========")
         call_command('import_insee_csv', os.path.join(data_path,'villes.csv'))
+        print("===========  IMPORT INSEE CSV PASS 2 ===========")
         call_command('import_insee_csv', os.path.join(data_path,'additional_cities.csv'))
+        print("===========  IMPORT HDA INSEE CSV ===========")
         call_command('import_hda_insee_csv', os.path.join(data_path,'HDA_Insee.csv'))
+        print("===========  QUERY CATEGORY INCLUSION ===========")
         call_command('query_category_inclusion')
         
         
\ No newline at end of file