Abstract base models and mixins to store address and GPS coordinates info
- Free software: MIT license
- Documentation: https://django-geocoding.readthedocs.io.
- AbstractLocation base model with opencage geocoding support
To run an example project for this django reusable app, click the button below and start a demo serwer on Heroku
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)),
...
]
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.
This package was created with Cookiecutter and the wooyek/cookiecutter-django-app project template.