Skip to content

arthanson/django-airports-legacy

 
 

Repository files navigation

django-airports

https://travis-ci.org/eracle/django-airports.svg?branch=master

Provides airports' related models and data (from [OpenFlights](http://openflights.org/)) that can be used in django projects, inspired by [django-cities](https://github.com/coderholic/django-cities)

Documentation

The full documentation is at https://django-airports.readthedocs.io.

Quickstart

Requirements (Ubuntu 16.04):

sudo apt-get install -y libsqlite3-mod-spatialite binutils libproj-dev gdal-bin

Install django-airports:

pip install django-airports

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'cities',
    'airports',
    'django.contrib.gis',
    ...
)

Features

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.

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package:

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 82.9%
  • HTML 11.8%
  • Makefile 5.3%