Metadata-Version: 2.1
Name: django-geodata
Version: 0.1.1
Summary: Django app to add GEO data [Countries, Cities, Time Zones, Geo Points and their Polygons in geoJSON format.]
Home-page: https://github.com/udartsev/django-geodata
Author: Vladimir Udartsev
Author-email: v.udartsev@gmail.com
License: MIT License
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.2
Classifier: Intended Audience :: Developers
Classifier: License :: Aladdin Free Public License (AFPL)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Database
Description-Content-Type: text/markdown
License-File: LICENSE

# django-geodata
Django app to add GEO data [Countries, Cities, Time Zones, Geo Points and their Polygons in geoJSON format.]

## Install
1) Download Django app packege:
`pip require django-geodata`

***
2) 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'
        }
***
3) In `settings.py` register **geodata** in Django Apps list:
        
        INSTALLED_APPS = [
        	'geodata'
        ]

***
4)  Add to your django `urls.py`:

        urlpatterns = [
            path('api/', include('geodata.urls')),
        ]

***
5) Seed geo data for example Russia (contry code = RU) data or use US, GB, FR, DE or other valid country code
`python manage.py seedcountry RU` 

***
6) `python manage.py runserver`
