docker-compose run --rm app sh -c "python manage.py collectstatic"
docker-compose
run
--rm
app
sh -c
docker-compose run --rm app
sh -c "python manage.py collectstatic
- Install 'flake8'
- Run it through Docker Compose
> docker-compose run --rm app sh c- "flake8"
- If there is any linting issue, work the way up -- start from the last error, and fix one by one
- the reason being, if we work from the top-down direction, it's gonna chnage the line number as we need more lines of codes, then it may be difficult to fix the rest of the errors.
- for testing, we will be using Django test suite
- Setup tests per Django app
- Run tests through Docker Compose
> docker-compose run --rm app sh -c "python manage.py test"
> docker-compose run --rm app sh -c "django-admin startproject app ."