From f20ab2bd61aa721d0f7f044273eb30356b19bd49 Mon Sep 17 00:00:00 2001 From: Pushpit Date: Sun, 4 Apr 2021 18:45:37 +0530 Subject: [PATCH 1/3] Added solution for ModuleNotFoundError Signed-off-by: Pushpit --- README.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.rst b/README.rst index d328634c9..f940f9ea2 100644 --- a/README.rst +++ b/README.rst @@ -106,6 +106,12 @@ compose. For this you need to have the following installed. Use ``sudo docker-compose up`` to start VulnerableCode. Then access VulnerableCode at http://localhost:8000/ or at http://127.0.0.1:8000/ +If you run into a ``ModuleNotFoundError: No module named ''``, run:: + + sudo docker-compose exec web bash + pip install -r requirements.txt + + Use ``sudo docker-compose exec web bash`` to access the VulnerableCode container. From here you can access ``manage.py`` and run management commands to import data as specified below. From 9b9ad97a775d8880745e1478a1a41180e69f81f0 Mon Sep 17 00:00:00 2001 From: Pushpit Date: Mon, 5 Apr 2021 10:38:40 +0530 Subject: [PATCH 2/3] Added command to Sync instance after every git pull in README.rst Signed-off-by: Pushpit --- README.rst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.rst b/README.rst index f940f9ea2..2034e527d 100644 --- a/README.rst +++ b/README.rst @@ -106,10 +106,7 @@ compose. For this you need to have the following installed. Use ``sudo docker-compose up`` to start VulnerableCode. Then access VulnerableCode at http://localhost:8000/ or at http://127.0.0.1:8000/ -If you run into a ``ModuleNotFoundError: No module named ''``, run:: - - sudo docker-compose exec web bash - pip install -r requirements.txt +**Important**: Don't forget to run `sudo docker-compose up -d --no-deps --build web` to sync your instance after every `git pull`. Use ``sudo docker-compose exec web bash`` to access the VulnerableCode From cde95d2f0d4e981871a05ecec67f8ba470ef5c67 Mon Sep 17 00:00:00 2001 From: Pushpit Date: Mon, 5 Apr 2021 12:31:07 +0530 Subject: [PATCH 3/3] Replaced 1 tilde with 2 Signed-off-by: Pushpit --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 2034e527d..b6357a2db 100644 --- a/README.rst +++ b/README.rst @@ -106,7 +106,7 @@ compose. For this you need to have the following installed. Use ``sudo docker-compose up`` to start VulnerableCode. Then access VulnerableCode at http://localhost:8000/ or at http://127.0.0.1:8000/ -**Important**: Don't forget to run `sudo docker-compose up -d --no-deps --build web` to sync your instance after every `git pull`. +**Important**: Don't forget to run ``sudo docker-compose up -d --no-deps --build web`` to sync your instance after every ``git pull``. Use ``sudo docker-compose exec web bash`` to access the VulnerableCode