multigtfs: GTFS as a Django app¶
multigtfs is an Apache 2.0-licensed Django app that supports importing and exporting of GTFS feeds. All features of the June 20, 2012 reference are supported, including all changes up to February 17, 2014. It allows multiple feeds to be stored in the database at once.
multigtfs is ready for your GTFS project.
Point releases (such as 1.0.0 to 1.0.1) should be safe, only adding features or fixing bugs. Minor updates (1.0.1 to 1.1.0) may include significant changes that will break relying code. In the worst case scenario, you may need to export your GTFS feeds in the original version, update multigtfs and your code, and re-import.
multigtfs works with Django 1.8 (the long-term support, or LTS, release) through 1.11 (the next LTS release), and 2.0. Support will follow the Django supported releases, as well as the Python versions supported by those releases.
All valid GTFS feeds are supported for import and export. This includes
feeds with extra columns not yet included in the GTFS spec, and feeds that
calendar.txt in favor of
calendar_dates.txt (such as the TriMet
archive feeds). If you find a feed that doesn’t work, file a bug!
See the issues list for more details on bugs and feature requests.
Check out the example project.
If you have Docker installed and working, you can run the example project without installing a database.
Initialize the containers with
docker-compose up. After a few minutes, it will display:
web_1 | Django version 1.8.18, using settings 'exploreproj.settings' web_1 | Development server is running at http://0.0.0.0:8000/ web_1 | Using the Werkzeug debugger (http://werkzeug.pocoo.org/) web_1 | Quit the server with CONTROL-C. web_1 | * Debugger is active! web_1 | * Debugger PIN: XXX-XXX-XXX
Visit http://localhost:8000 to view the example project.
See the example project for more details.