Abstract base models and mixins to store address and GPS coordinates info
Project description
Abstract base models and mixins to store address and GPS coordinates info
Free software: MIT license
Documentation: https://django-geocoding.readthedocs.io.
Features
AbstractLocation base model with opencage geocoding support
Demo
To run an example project for this django reusable app, click the button below and start a demo serwer on Heroku
Quickstart
Install Django geocoding for models:
pip install django-geocoding
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'django_geocoding.apps.DjangoGeocodingConfig',
...
)
Add Django geocoding for models’s URL patterns:
from django_geocoding import urls as django_geocoding_urls
urlpatterns = [
...
url(r'^', include(django_geocoding_urls)),
...
]
Running Tests
Does the code actually work?
- ::
$ pipenv install –dev $ pipenv shell $ tox
We recommend using pipenv but a legacy approach to creating virtualenv and installing requirements should also work. Please install requirements/development.txt to setup virtual env for testing and development.
Credits
This package was created with Cookiecutter and the wooyek/cookiecutter-django-app project template.
History
0.1.0 (2017-12-27)
First release on PyPI.
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
File details
Details for the file django-geocoding-0.1.1.tar.gz
.
File metadata
- Download URL: django-geocoding-0.1.1.tar.gz
- Upload date:
- Size: 47.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2d41de657a76baccae4000fdb709f57cb8dcfae6746833dc053930abedd80df |
|
MD5 | 04427b397da25f09ed07863475ecee43 |
|
BLAKE2b-256 | 29013297e20d7380455c53140ffe86f97bcc51c195f60597cc65a9dcf0ffdb1a |
File details
Details for the file django_geocoding-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: django_geocoding-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e2aadbb1a20e392b956c0f5d4e07556d0af3a02f637a8eaaff0407f045e1e4c |
|
MD5 | 177128ac4d9538cc113171c378f1bdda |
|
BLAKE2b-256 | d400fd97f568543cf1ca9977b2fb4248247e661b968c9f96afb977755b12ae24 |