DB populated

parent 46ddf6e8
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -15,9 +15,9 @@ class Command(BaseCommand):
with open(base_path + str(index)+'.geojson') as f:
data = json.load(f)
# print "Estado: ", data['name']
for feat in data['feature']:
for feat in data['features']:
polygon = Polygon(
name = feat['properties']['NOMGEO']
name = feat['properties']['NOMGEO'],
json_info = feat
)
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment