Name: metaEFA
Owner: Open Data Stuttgart
Description: an easy to use api wrapper for EFA
Created: 2015-05-16 10:24:56.0
Updated: 2018-05-09 16:22:38.0
Pushed: 2018-05-09 16:22:36.0
Homepage: null
Size: 388
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Web Click UI: http://efa.asw.io (Source: https://github.com/momorientes/metaEFA-UI) - only works in Chrome
Hosted API version: https://efa-api.asw.io
The easiest way to run the django app is to install Docker and Docker Compose (Instructions)
It is advisable to create an alias for docker-compose:
s dc=docker-compose
To build the containers run dc build
if you do this the first time it will take some time.
Then initialize the database:
un web reset_db
un web migrate
To run the app (-d for daemonizing => background):
p [-d]
To get a python shell with DB access:
un web shell_plus
To populate DB, get a python shell with DB access (see above), then:
main.utils import populate_stations
late_stations()
After changing something in a model you will need to create migrations:
un web makemigrations
un web migrate