Skip to main content

Airport model and worldwide airport data for Django

Project description

django-airports
===

### Airport model and worldwide airport data for Django

----

django-airports provides you with airport related model and data (from [OpenFlights](http://openflights.org/)) that can be used in your django projects.

Authored by [Basil Shubin](https://github.com/bashu), inspired by [django-cities](https://github.com/coderholic/django-cities)

[![Latest Version](https://img.shields.io/pypi/v/django-airports.svg)](https://pypi-hypernode.com/pypi/django-airports/)
[![Downloads](https://img.shields.io/pypi/dm/django-airports.svg)](https://pypi-hypernode.com/pypi/django-airports/)
[![License](https://img.shields.io/github/license/bashu/django-airports.svg)](https://pypi-hypernode.com/pypi/django-airports/)
[![Code Health](https://landscape.io/github/bashu/django-airports/develop/landscape.svg?style=flat)](https://landscape.io/github/bashu/django-airports/develop)

----

### Requirements

You must have *django-cities* installed and configured, see the [django-cities documentation](https://github.com/coderholic/django-cities) for details and setup instructions.

### Setup

Either clone this repository into your project, or install with ```pip install django-airports```

You'll need to add ```airports``` to ```INSTALLED_APPS``` in your project's ```settings.py``` file:

```python
import django

INSTALLED_APPS = (
...
'airports',
)

if django.VERSION < (1, 7):
INSTALLED_APPS += (
'south',
)
```

Then run ```./manage.py syncdb``` to create the required database tables, and ```./manage.py airports``` to import all of the airports data. **NOTE:** This can take some time.

Please see ``example`` application. This application is used to manually test the functionalities of this package. This also serves as a good example.

You need Django 1.4 or above to run that. It might run on older versions but that is not tested.

### Notes

The ```airports``` manage command has options, see ```airports --help``` output. Verbosity is controlled through LOGGING.

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

django-airports-0.1.4.tar.gz (8.4 kB view details)

Uploaded Source

File details

Details for the file django-airports-0.1.4.tar.gz.

File metadata

File hashes

Hashes for django-airports-0.1.4.tar.gz
Algorithm Hash digest
SHA256 8bde33ead66d23e6a19897049137a9061db8136144b25e69f8f930973c6ac01a
MD5 0d0992ba3d208e62652036584f3f87b4
BLAKE2b-256 c3119c2485294891674b0e7ff47335c6414a25acb01db151f35ca77da5ea9bd9

See more details on using hashes here.

Provenance

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