Django app to add GEO data [Countries, Cities, Time Zones, Geo Points and their Polygons in geoJSON format.]
Project description
django-geodata
Django app to add GEO data [Countries, Cities, Time Zones, Geo Points and their Polygons in geoJSON format.]
Install
- Download Django app packege:
pip require django-geodata
- Seed geo data for example Russia (contry code = RU) data or use US, GB, FR, DE or other valid country code
python manage.py seetcountry RU
-
Add to your django
settings.py
file database connection settings for geodata table:DATABASE_ROUTERS = ['geodata.databaserouter.GeodataRouter'] DATABASE_APPS_MAPPING = {'geodata': 'geodata'} DATABASES = { 'geodata': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': 'geodata', 'USER': 'postgres', 'PASSWORD': 'Postgres911!', 'HOST': 'localhost', 'PORT': '5432' }
-
Add to your django
urls.py
:urlpatterns = [ path('api/', include('geodata.urls')), ]
python manage.py runserver
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-geodata-0.1.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for django_geodata-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bc306808d91a0014a67467efec9d780c78275ad96db4ff93f90866a19b17c18 |
|
MD5 | 26fb9dd9856c84f5c98368b69399aebf |
|
BLAKE2b-256 | bced427f24c302a429d9af167487f02173af0e777d6a3ce605fb2b6de5aa08b9 |