← Back: Documentation Overview
- 🐍 Python
- 🐍 Pyenv: Install python
- 🐍 Python: Call submodule of Python
- 🐍 Python: Install poetry
- 🐍 poetry: Install virtual environment with dependencies
- 🐍 poetry: Install package
- 🐍 poetry: Uninstall package
- 🐍 poetry: Activate virtual environment
- 🐍 poetry: Run command inside virtual environment
- 🐍 Django: Show all commands
- 🐍 Django: Run command
- 🐍 Django: Makemigrations
- 🐍 Django: Migrate
- 🐍 Django: Start server
- 🐍 Django: Show all urls
- 🐍 Django: Collect all staticfiles
- 🐍 Django: Open shell
- 🐍 Django: Collect all staticfiles
- 🐳 Docker
- 🧶 Yarn
pyenv
must be installed.
Must run inside same directory as .python-version.
pyenv install
python -m <module>
# Example:
python -m poetry
python -m pip install poetry
Must run inside same directory as Pipfile.
POETRY_VIRTUALENVS_IN_PROJECT=1 python -m poetry install
python -m poetry install <package>
python -m poetry uninstall <package>
python -m poetry shell
python -m poetry run <command>
# Example:
python -m poetry run python -V
python -m poetry run python manage.py
# Locally:
python -m poetry run python manage.py <command>
# Inside container:
docker compose exec backend python -m poetry run python manage.py <command>
# Locally:
python -m poetry run python manage.py makemigrations
# Locally:
python -m poetry run python manage.py makemigrations
python -m poetry run python manage.py runserver
python -m poetry run python manage.py show_urls -f table
python -m poetry run python manage.py collectstatic
python -m poetry run python manage.py shell_plus
python -m poetry run python manage.py collectstatic
Be sure to check out the documentation for Docker command aliases.
<container-name>
is defined underservices
in docker-compose.yml.
docker compose exec <container-name> <command>
# Example:
docker compose exec backend echo "Hello World!"
<container-name>
is defined underservices
in docker-compose.yml.
docker compose down
<container-name>
is defined underservices
in docker-compose.yml.
docker compose exec <container-name> <command>
# Example:
docker compose exec backend bash
<container-name>
is defined underservices
in docker-compose.yml.
docker compose exec <container-name> <command>
# Example:
docker compose exec backend echo "Hello World!"
--rm
removes container after exiting.
<container-name>
is defined underservices
in docker-compose.yml.
docker compose run --rm <container-name> <command>
# Example:
docker compose run --rm backend echo "Hello World!"
docker compose build
docker compose up
<container-name>
is defined underservices
in docker-compose.yml.
docker compose up <container-name>
# Example:
docker compose up backend
Must run in same directory as package.json.
npm install --global yarn
yarn install
yarn add <package>
yarn remove <package>
yarn start
yarn storybook
yarn cypress open
yarn cypress run