-
Notifications
You must be signed in to change notification settings - Fork 0
Initialization Steps
git clone git@github.com:OpenHamilton/hsrsms.git
python manage.py syncdb
python manage.py runserver
python manage.py runrouter
By default, visit: http://127.0.0.1:8000/ or http://127.0.0.1:8000/admin to access the admin interface. The database is empty by default and a fixture must be loaded.
python manage.py loaddata hamilton_data.json
The above command will locate the .json data in the fixtures/ directory of the hammersms application. This may take a few minutes to run given the size of the database (you only need to run this once in most cases).
Alternatively for test purposes load the test_data.json data. This data set is much faster to load an easier to play around with.
python manage.py loaddata test_data.json
You may now view the data via the admin interface.
The init/ directory contains files required to create your own fixture from GTFS data. Since two test sets already exists, this can be ignored for testing purposes. If you wish to use hammersms in another region you must use the conversion methods found in init/.