Quick start instuctions¶
To set up the project, set your virtual env using the commands in this order (Bash):¶
source venv/Scripts/activate
python manage.py makemigrations
python manage.py makemigrations main
python manage.py migrate
python manage.py runserver
To set up the project, set your virtual env using the commands in this order (Ubuntu):¶
sudo apt install python3
sudo apt install python3-venv
sudo -S apt -y update && sudo -S apt -y install libreoffice
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 manage.py makemigrations
python3 manage.py makemigrations main
python3 manage.py migrate
python3 manage.py migrate
One command format:¶
`sudo apt install python3 && sudo apt install python3-venv && sudo -S apt -y update && sudo -S apt -y install libreoffice && python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt && python3 manage.py makemigrations && python3 manage.py makemigrations main && python3 manage.py migrate && python3 manage.py runserver`
You also can add server runner to your configs, to do that follow this steps (PyCharm):¶
Open configurations editor
Add new configuration
Python
Name it as you want
Set script path (Path to manage.py)
Set parameters: “runserver”
Make sure that here is configured your environment