moved data files to datasets/, created addtestdata command
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user