do pip install pipenv
to get pipenv
to activate virtual environment: pipenv shell
to install dependencies: pipenv install
To make sure sessions are active in view, make sure that GET or POST AJAX requests have credentials included and also csrf token, for example:
#type: ignore
to ignore the line
sudo systemctl start postgresql.service
sudo -u postgres psql
CREATE DATABASE flex;
CREATE USER admin WITH PASSWORD 'P@ssword1234';
ALTER USER admin WITH SUPERUSER;
python manage.py refreshactivestatus
In production this will be run every 24h by a CRON job
To run backend server: daphne backend.asgi:application exec web python manage.py migrate --noinput
Take note that need to put service name under host in order for django to connect to db
docker compose exec web python manage.py migrate --noinput