Posts

Showing posts from November, 2025

Python/Django API with Docker and Docker Compose Udemy Course Notes

Image
 https://www.udemy.com/course/django-python-advanced/learn/lecture/32238716#overview docker-compose run --rm app sh -c "python manage.py collectstatic" https://www.udemy.com/course/django-python-advanced/learn/lecture/32238736#overview created requirements and dockfile FROM python:3.9-alpine3.13   (Alpine is lightweight version of linux) from hub.docker.com - lots of image tags there for the dockerfile. ENV PYTHONUNBUFFERED 1 Could have used multiple RUN lines.  but && /  is better Boyo likes using venv anyway even though using docker .dockerignore  file creation docker build . docker-compose file creation  e.g. sh -c "python manage.py runserver 0.0.0.0:8000"  -->  can run docker-compose build   (same as docker build . but via docker file) https://www.udemy.com/course/django-python-advanced/learn/lecture/32238750#overview linting and testing flake8 simple to use liniting tool docker-compose run --rm app sh -c "f...

flutter

 1) in VS Code press CTRL + SHIFT + P   type flutter. it wants to download.  Save to a folder. Wait 2)  flutter doctor -v  in terminal https://codelabs.developers.google.com/codelabs/flutter-codelab-first#3