Simple Django app to group countries in world's regions like *Northern America*, *Eastern Europe*, etc.
Simple Django app to group countries in world’s regions like Northern America, Eastern Europe, etc.
Regions data are based in http://techydiary.com/region-yaml-for-django-fixtures/ thanks Stephen for that.
Django Countries is used to handle countries.
pip install django-world-regions
Add world_regions to INSTALLED_APPS
python manage.py migrate
from world_regions.models import Region region = Region.objects.get(countries__country='US') print region.name
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.