Formulaire & carte pour recenser les aspirant-e-s connecté-e-s à un réseau radio.
![]() |
il y a 10 ans | |
---|---|---|
assets | il y a 10 ans | |
contrib | il y a 10 ans | |
json | il y a 10 ans | |
views | il y a 10 ans | |
.gitignore | il y a 10 ans | |
LICENSE | il y a 10 ans | |
README.md | il y a 10 ans | |
TODO.md | il y a 10 ans | |
backend.py | il y a 10 ans |
We use bottle micro-framework.
# apt-get install python-bottle
(current code works with debian-stable version of bottle)
or
$ pip install bottle
$ ./backend.py
Then hit http://localhost:8080
To run in debug mode (auto-reload)
$ DEBUG=1 ./backend.py
Bottle will reload on source change, but not on template change if you're using an old version of bottle.
You can specify listening port and address by setting BIND_PORT
and
BIND_ADDR
env vars, ex:
BIND_ADDR='0.0.0.0' BIND_PORT=8081 ./backend.py
Default is to listen on 127.0.0.0
, port 8080
.
$ python backend.py createdb
$ python backend.py buildgeojson
$ rm db.sqlite3
What else ?