From 0f2b122b012480349c6de279becb82faaeb410ed Mon Sep 17 00:00:00 2001 From: "Arash F. Taleghani" Date: Tue, 1 Nov 2022 21:38:47 +0100 Subject: [PATCH] Add how to shell to docs --- docs/website/backend.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/website/backend.md b/docs/website/backend.md index 8e127d1..61d6865 100644 --- a/docs/website/backend.md +++ b/docs/website/backend.md @@ -99,6 +99,17 @@ $ yapf -ir itdagene # Fix code formatting $ tox -e isort -e flake8 -e yapf # Verify code style ``` +### Shell + +For testing purposes, it is sometimes useful to enter the server_shell + +```bash +$ ssh itdagene@itdagene.no +$ docker exec -t sh +$ python manage.py shell_plus +$ print(User.objects.get(username="")) # Tip +``` + ## Celery ```bash