Skip to main content

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

  1. 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'
     }
    

  1. In settings.py register geodata in Django Apps list:

     INSTALLED_APPS = [
     	'geodata'
     ]
    

  1. Add to your django urls.py:

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

  1. 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

  1. python manage.py runserver

Release files for django-geodata 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-geodata 0.1.1
File Size Uploaded
django-geodata-0.1.1.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-geodata 0.1.1
File Interpreter ABI Platform
django_geodata-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 kB

Release files / django-geodata-0.1.1.tar.gz

Download URL django-geodata-0.1.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
326050ce68e9ab79f9660789d29e876133c5c862dbd60c52684ce468cd515468
BLAKE2b-256 checksum
How to use checksums
83842c9356dda32c22fcab3f352a28a4f2b76d4a5fb68d30773044a858d90f5f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / django_geodata-0.1.1-py3-none-any.whl

Download URL django_geodata-0.1.1-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff9873268d489c048d368fe763777ad67073279d273c62e8514f7898fe7f61c1
BLAKE2b-256 checksum
How to use checksums
f0768ddd793b67e400b7fe800b382bf6a03b82678dd92bcd52c658c9c7a12e59
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page