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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-geodata-0.1.1.tar.gz | 2.7 kB | Without provenance | Details for django-geodata-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_geodata-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for django_geodata-0.1.1-py3-none-any.whl |
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
|
Security for django-geodata 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.