update to requirements, fix dataset file location in management command

This commit is contained in:
Sam
2021-02-02 11:51:00 +00:00
parent c8d433c3f9
commit 3e54061733
2 changed files with 6 additions and 4 deletions

View File

@@ -26,12 +26,12 @@ class Command(BaseCommand):
# create country for spain # create country for spain
country = Country.objects.create(name='España') country = Country.objects.create(name='España')
locations_file = 'locations.json' locations_file = 'datasets/locations.json'
locations = json.loads(open(locations_file).read()) locations = json.loads(open(locations_file).read())
# REGIONS # 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()) geo_data = json.loads(open(geo_file).read())
logging.info("Starting Region creation") logging.info("Starting Region creation")

View File

@@ -1,6 +1,7 @@
Django==2.2.17 Django==2.2.17
psycopg2-binary==2.8.6
djangorestframework==3.12.2 djangorestframework==3.12.2
djangorestframework-simplejwt==4.4.0 djangorestframework-simplejwt==4.6.0
factory-boy==3.1.0 factory-boy==3.1.0
django-dotenv==1.4.2 django-dotenv==1.4.2
django-filter==2.4.0 django-filter==2.4.0
@@ -8,3 +9,4 @@ django-filter==2.4.0
django-cors-headers==3.5.0 django-cors-headers==3.5.0
django-taggit-serializer==0.1.7 django-taggit-serializer==0.1.7
django-tagulous==1.1.0 django-tagulous==1.1.0
Pillow==8.1.0