Skip to main content

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.

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

Metadata

Release files for django-world-regions 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-world-regions 0.1.1
File Size Uploaded
django-world-regions-0.1.1.tar.gz 10.3 kB Details

Release files / django-world-regions-0.1.1.tar.gz

Download URL django-world-regions-0.1.1.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9db46281cf16f256ab50af26005865b38aedf73453e9c42d33fa930d5413fe15
BLAKE2b-256 checksum
How to use checksums
10ae41021e90f42ca6128fd015192dae2826bac29ce1b09e1088c815ddb5d0b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page