stregsystemet
stregsystemet copied to clipboard
The very public stregsystem repo
Stregsystemet

This is the current stregsystem in the F-Klub.
Branches
master: The running code on the live system.next: The set of changes which will be included in the next release.
Python Environment
For windows using Anaconda and virtual environments:
- Download and install Anaconda
- In a shell:
conda create -n stregsystem python=3.11activate stregsystempip install -r requirements.txt
- ???
- Profit
For Ubuntu with virtual envs:
- Install python3 with pip
sudo apt install python3 python3-pip python3-venv
- Create virtual environment
python3 -m venv venv
- Activate virtualenv
source venv/bin/activate
- Install packages
pip3 install -r requirements.txt
- ???
- Profit
Using Testdata
In order to simplify development for all, we have included a test fixture.
Using testserver will delete the data after running.
To use it do the following:
python manage.py migratepython manage.py testserver stregsystem/fixtures/testdata.json- ???
- Profit
Admin panel: http://127.0.0.1:8000/admin/
Login: tester:treotreo
Stregsystem: http://127.0.0.1:8000/1/
User: tester
Persistent Testdata
Using runserver will automatically reload django on code change, and persist data in the database configured in local.cfg (can be whatever backend you want to use).
First time:
python manage.py migratepython manage.py loaddata stregsystem/fixtures/testdata.jsonpython manage.py runserver- ???
- Profit
From then on
python manage.py runserver- ???
- Profit