Codenerix Geodata is a module that enables CODENERIX to work with Geographical data. It includes models for geolocation (Continents, Countries, Regions, cities, time zones, etc) and data gotten from https://www.maxmind.com/
You can have a look to our demos online:
You can find some working examples in GITHUB at django-codenerix-examples project.
-
Install this package:
For python 2: sudo pip2 install django-codenerix-geodata For python 3: sudo pip3 install django-codenerix-geodata
-
Add "codenerix_geodata" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'codenerix_geodata', ]
-
- Add the param in setting:
-
# list of languages available for the translation of the content of the models LANGUAGES_DATABASES = ['ES', 'EN']
-
Since Codenerix Geodata is a library, you only need to import its parts into your project and use them.
Coming soon... do you help us?
You can get in touch with us here.
The geographical data are offered by Maxmind, which is made available under Creative Commons Attribution 3.0