Django backed project to keep track of pool test results. Better then a tatty piece of A4 paper.
1.8K
Django backed project to keep track of pool test results.
Customise the example local_settings.py in /scripts/systemd/local_settings.py and save it to /poolmaster/local_settings.py.
You may want to set up your database (also read this) and static files storage backend if running a production like environment.
Make a Python 3 virtualenv and use pip to install the requirements:
mkvirtenv poolmaster
pip install -r requirements.txt
Run migrations: python poolmaster/manage.py migrate
Then:
Run the werkzeug server with python poolmaster/manage.py runserver_plus 0.0.0.0:8000; or
Run the gunicorn server with ./scripts/run_server.sh
To run this in docker, customise local_settings.py file and run with:
docker run \
--rm \
-v /path/to/your/local_settings.py:/usr/src/app/poolmaster/poolmaster/settings/local_settings.py \
-p 8000:8000 \
-it \
cgspeck/poolmaster
You can find an example local_settings.py in /scripts/systemd.
If you want to run from source through the docker container, then run:
docker run \
--rm \
--name poolmaster-dev \
-v /path/to/your/local_settings.py:/usr/src/app/poolmaster/poolmaster/settings/local_settings.py \
-v "$(pwd)/":/usr/src/app/ \
-p 8000:8000 \
-ti \
cgspeck/poolmaster
This is available as scripts/docker_dev.sh
Navigate to admin/. You will need to run python poolmaster/manage.py createsuperuser and follow the prompts to create your login account.
There are two ways to export entries from the system:
/export.[json|csv] endpointLog into the Admin, click on 'Observations', then 'Import' and follow the prompts to upload your data file.
The script /script/deploy_systemd will copy a service file and local_settings.py to the appropriate locations in order to run the docker container on startup.
You will need to edit /etc/poolmaster/local_settings.py to set up your database (and read this) and static files storage backend.
Use at your own risk.
Favicon derived from original photography by ABZ Private School - Own work, CC BY-SA 4.0 and created with Favicon Generator. For real.
Content type
Image
Digest
Size
271.8 MB
Last updated
over 9 years ago
docker pull cgspeck/poolmaster