Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Simple Django app to group countries in world's regions like *Northern America*, *Eastern Europe*, etc.

Project description

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.

Note

Currently this package don’t use GeoDjango neither map data.

Installation

  1. pip install django-world-regions
  2. Add world_regions to INSTALLED_APPS
  3. python manage.py migrate

Usage

from world_regions.models import Region

region = Region.objects.get(countries__country='US')
print region.name

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-world-regions, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django-world-regions-0.1.1.tar.gz (10.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page