Django server to keep track of the state of batteries. Made by dublu.
Sort and filter Make it look better
Use pipenv
to manage python deps and versions
pipenv install
pipenv shell
Spawn a development django server
python manage.py migrate
python manage.py runserver
# Optional, do once
python3 manage.py createsuperuser
In one terminal, start the dev
requirements.
make dev
In another terminal, build and run a local copy of the server
make run
Alternatively, run the local django with the docker url string
export DATABASE_URL=postgres://battery_user:battery_password@172.18.0.2:5432/battery_db
python manage.py migrate
python manage.py runserver