Skip to main content

"It's like django-cities, but django-airports"

Project description

Provides airports’ related models and data (from OurAirports) that can be used in django projects, inspired by django-cities

Authored by Basil Shubin, and some great contributors.


First install the module, preferably in a virtual environment. It can be installed from PyPI:

pip install django-airports


You must have django-cities installed and configured, see the django-cities documentation for details and setup instructions.


First make sure the database support spatial queries, see the GeoDjango documentation for details and setup instructions.

You’ll need to add airports to INSTALLED_APPS in your projects file:


Then run ./ migrate to create the required database tables.

Import data

After you have configured all settings, run

python airports

The airports manage command has options, see airports --help output.

Second run will update the DB with the latest data from the source csv file.


If you like this module, forked it, or would like to improve it, please let us know! Pull requests are welcome too. :-)


django-airports is released under the MIT license.


1.0.3 (2021-12-22)

  • Fixed broken release.

1.0.2 (2021-12-22)

  • Include missing .mo files.

1.0.1 (2021-12-22)

  • Added ru translation.

  • Renamed city_name field to municipality, local field to local_code.

1.0.0 (2021-12-21)

  • Added Django 3+ support.

  • Dropped Python 2.7 support.

  • Dropped Django 1.10 / 1.11 support.

Download files

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

Source Distribution

django-airports-1.0.3.tar.gz (14.7 kB view hashes)

Uploaded source

Built Distribution

django_airports-1.0.3-py3-none-any.whl (17.9 kB view hashes)

Uploaded py3

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