bashu/django-airports


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

License: MIT

Language: Python


django-airports

Airport model and worldwide airport data for Django


django-airports provides you with airport related model and data (from OpenFlights) that can be used in your django projects.

Authored by Basil Shubin, inspired by django-cities

Latest Version Downloads License Code Health


Requirements

You must have django-cities installed and configured, see the django-cities documentation 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:

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 Statistics

Sourcerank 6
Repository Size 61.5 KB
Stars 47
Forks 7
Watchers 1
Open issues 2
Dependencies 7
Contributors 2
Tags 5
Created
Last updated
Last pushed

Top Contributors See all

Basil Shubin Ilya Grishkov

Packages Referencing this Repo

django-airports
Airport model and worldwide airport data for Django
Latest release 0.1.4 - Updated - 47 stars

Recent Tags See all

0.1.4 August 07, 2015
0.1.3 May 15, 2015
0.1.2 April 15, 2015
0.1.1 March 28, 2015
0.1 March 27, 2015

Something wrong with this page? Make a suggestion

Last synced: 2016-05-27 16:33:14 UTC

Login to resync this repository