Note: This repository was moved from django-cities as currently can't release new packages from the django-cities repository. django-cities-xtd is a completely drop-in replacement and is just a more modern fork of this repository with Django 6.0 compatibility, performance enhancements and bugfixes.
django-cities-xtd provides you with place related models (eg. Country, Region, City) and data (from GeoNames) that can be used in your django projects.
This package officially supports all currently supported versions of Python/Django:
| Python | 3.10 | 3.11 | 3.12 | 3.13 | 3.14 |
|---|---|---|---|---|---|
| Django 5.0 | ✅ | ✅ | ✅ | ❌ | ❌ |
| Django 5.1 | ✅ | ✅ | ✅ | ✅ | ❌ |
| Django 5.2 | ✅ | ✅ | ✅ | ✅ | ✅ |
| Django 6.0 | ❌ | ❌ | ✅ | ✅ | ✅ |
| Key | |
|---|---|
| ✅ | Officially supported, tested, and passing |
| 🔵 | Tested and passing, but not officially supported |
| ❌ | Known incompatibilities |
See some of the data in action at city.io and country.io.
For detailed documentation, please visit: https://arthanson.github.io/django-cities-xtd/