Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bashu/django-airports
✈️ It's like django-cities, but django-airports
https://github.com/bashu/django-airports
django django-cities
Last synced: about 1 month ago
JSON representation
✈️ It's like django-cities, but django-airports
- Host: GitHub
- URL: https://github.com/bashu/django-airports
- Owner: bashu
- License: mit
- Created: 2014-07-01T08:59:53.000Z (over 10 years ago)
- Default Branch: develop
- Last Pushed: 2021-12-22T09:22:38.000Z (almost 3 years ago)
- Last Synced: 2024-09-18T04:34:34.691Z (3 months ago)
- Topics: django, django-cities
- Language: Python
- Homepage: https://django-airports.readthedocs.io/
- Size: 273 KB
- Stars: 55
- Watchers: 5
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
django-airports
===============.. image:: https://img.shields.io/pypi/v/django-airports.svg
:target: https://pypi.python.org/pypi/django-airports/.. image:: https://img.shields.io/pypi/dm/django-airports.svg
:target: https://pypi.python.org/pypi/django-airports/.. image:: https://img.shields.io/github/license/bashu/django-airports.svg
:target: https://pypi.python.org/pypi/django-airports/.. image:: https://app.travis-ci.com/bashu/django-airports.svg?branch=develop
:target: https://app.travis-ci.com/bashu/django-airportsProvides 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 `_... raw:: html
Installation
------------First install the module, preferably in a virtual environment. It can be installed from PyPI:
.. code-block:: shell
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:
.. code-block:: python
INSTALLED_APPS += [
'airports',
]Then run ``./manage.py migrate`` to create the required database tables.
Import data
-----------After you have configured all settings, run
.. code-block:: shell
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.