DevOpsHobbies

project setup

1- compelete cookiecutter workflow (recommendation: leave project_slug empty) and go inside the project

cd Project_name

2- SetUp venv

virtualenv venv
source venv/bin/activate

3- install Dependencies

pip install -r requirements.txt

4- spin off docker compose

docker-compose -f docker-compose.dev.yml up -d

5- create your env

cp .env.example .env

6- Create tables

python manage.py migrate

7- run the project

python manage.py runserver

8- Celery and celery beat

  celery -A devopshobbies.tasks worker -l info --without-gossip --without-mingle --without-heartbeat
  celery -A devopshobbies.tasks beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler