moved data files to datasets/, created addtestdata command

This commit is contained in:
Sam
2021-01-26 13:36:15 +00:00
parent b385767232
commit 9b78fba142
5 changed files with 59 additions and 3 deletions

View File

@@ -26,12 +26,12 @@ class Command(BaseCommand):
# create country for spain
country = Country.objects.create(name='España')
locations_file = 'locations.json'
locations_file = 'datasets/locations.json'
locations = json.loads(open(locations_file).read())
# REGIONS
geo_file='gadm36_ESP.json' # geo boundary data for regions
geo_file='datasets/gadm36_ESP.json' # geo boundary data for regions
geo_data = json.loads(open(geo_file).read())
logging.info("Starting Region creation")