Skip to main content

Django app for Tanzania Regions and Districts

Project description


A Django application consisting of all Tanzania locations from Regions to District.


  • Python 3.6+
  • Pip or Pipenv

It will Cover

  • Regions (region, capital, number of districts, area, population, postcode and zone)
  • Districts (district, region, population)
  • Wards
  • Vilage/Streets


This package is available in Python Package Index and can be installed using pip or pipenv

  1. Run pip install django-mikoa
  2. Add mikoa to INSTALLED_APPS
  3. Run python migrate


To access Tanzania Regions

from mikoa.models import Region
regions = Region.objects.all()


To access Tanzania Districts

from mikoa.models import District
districts = District.objects.all()


To access all Districts of Certain Region

from mikoa.models import Region, District
regions = Region.objects.all()

for region in regions:
    for district in region.district_set.all():

Give it a star

If you found this repository useful, give it a star so as the whole galaxy of developer can get to know it.

Bug bounty?

If you encounter issue with the usage of the package, feel free raise an issue so as we can fix it as soon as possible(ASAP).

Pull Requests

If you have something to add I welcome pull requests on improvement , you're helpful contribution will be merged as soon as possible


All the location I used to build this repository, I got from an public repository titled tanzania-locations-db, I'm not responsible for any kind of misinformation in it, So use it to your own risk

Project details

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_mikoa-0.0.3-py3-none-any.whl (11.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page