modified addgeo command
This commit is contained in:
11
README.md
11
README.md
@@ -5,7 +5,7 @@ This README aims to document functionality of backend as well as required steps
|
||||
## Table of Contents
|
||||
|
||||
- [First Steps](#first-steps)
|
||||
|
||||
- [Location Data](#location-data)
|
||||
|
||||
## First Steps
|
||||
|
||||
@@ -22,15 +22,14 @@ python migrate
|
||||
- Start server in development mode: `python manage.py runserver`
|
||||
|
||||
|
||||
## Load Geo data
|
||||
Import geodata
|
||||
## Location data
|
||||
|
||||
To load initial location data use: `python manage.py addgeo`
|
||||
|
||||
```python
|
||||
import os
|
||||
from geo.models import Region
|
||||
from django.contrib.gis.geos import GeometryCollection, GEOSGeometry
|
||||
from django.contrib.gis.geos import GEOSGeometry, MultiPolygon
|
||||
import json
|
||||
from django.contrib.gis.geos import MultiPolygon
|
||||
|
||||
path='gadm36_ESP_1.json'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user