"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.
Installation
First install the module, preferably in a virtual environment. It can be installed from PyPI:
pip install django-airports
Requirements
You must have django-cities installed and configured, see the django-cities documentation for details and setup instructions.
Setup
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 settings.py file:
INSTALLED_APPS += [
'airports',
]
Then run ./manage.py migrate to create the required database tables.
Import data
After you have configured all settings, run
python manage.py 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.
Contributing
If you like this module, forked it, or would like to improve it, please let us know! Pull requests are welcome too. :-)
License
django-airports is released under the MIT license.
Changes
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_airports-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a27302c12a3cd8d05be998ae90dc2879c6e7040a38af1cdb607d891929bcae32 |
|
MD5 | 1602868cf3a85c939750412fea13f61f |
|
BLAKE2b-256 | 3770985da9d33676392f7c27214eca96b784c8942bd4fde381f96d2c7f583452 |