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
-
Add to your django
settings.pyfile 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' }
-
In
settings.pyregister geodata in Django Apps list:INSTALLED_APPS = [ 'geodata' ]
-
Add to your django
urls.py:urlpatterns = [ path('api/', include('geodata.urls')), ]
- 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-geodata-0.1.1.tar.gz.
File metadata
- Download URL: django-geodata-0.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
326050ce68e9ab79f9660789d29e876133c5c862dbd60c52684ce468cd515468
|
|
| MD5 |
e4b68d4aefb6e12e2ccb5184b89a5c9f
|
|
| BLAKE2b-256 |
83842c9356dda32c22fcab3f352a28a4f2b76d4a5fb68d30773044a858d90f5f
|
File details
Details for the file django_geodata-0.1.1-py3-none-any.whl.
File metadata
- Download URL: django_geodata-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff9873268d489c048d368fe763777ad67073279d273c62e8514f7898fe7f61c1
|
|
| MD5 |
bfcae3a620d6b6c3a437330c57460f32
|
|
| BLAKE2b-256 |
f0768ddd793b67e400b7fe800b382bf6a03b82678dd92bcd52c658c9c7a12e59
|