Webová platforma na zabezpečenie chodu jednodňových súžaží organizovaných združením STROM.
Install Python from https://www.python.org/downloads/ and then in CMD type:
python -m pip install virtualenv
In Bash type:
sudo apt install pip
python3 -m pip install Django==2.0
python3 -m pip install virtualenv
You have to get through local setup only once (per a project).
In CMD:
Create virtual enviroment
py -m venv ENV_NAME
Perhaps, you will need to allow remote access in your firewall.
In Terminal:
Create virtual enviroment
virtualenv ENV_NAME
Install dependencies:
pip install -r requirements.txt
and allow remote access for desired port:
iptables -I INPUT -p tcp -m tcp --dport PORT_NUMBER -j ACCEPT
Make and then apply migrations. You can do it by typing:
manage.py makemigrations competition
manage.py migrate
to your CMD or Bash into sutazeStrom
directory.
In CMD:
sutazeStrom
directoryENV_NAME\Scripts\activate
python manage.py runserver 0.0.0.0:PORT_NUMBER
In Terminal:
sutazeStrom
directorysource ENV_NAME/bin/activate
python manage.py runserver 0.0.0.0:PORT_NUMBER
After all that you can access to admin site by typing localhost:PORT_NUMBER/admin
and to app by typing localhost:PORT_NUMBER/index
(localhost
can be substituted by an IP address of server e.g. 192.168.1.47
).