From 8948e241e45db1d3c00d5d12dd3b48b5e4b67ac5 Mon Sep 17 00:00:00 2001 From: hj Date: Wed, 24 Jul 2024 14:37:46 +0530 Subject: [PATCH 1/2] Fix swagger api --- docker/dev/django/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/dev/django/Dockerfile b/docker/dev/django/Dockerfile index 9c4b5f9a52..c4f1af0284 100644 --- a/docker/dev/django/Dockerfile +++ b/docker/dev/django/Dockerfile @@ -8,4 +8,8 @@ WORKDIR /code ADD requirements/* /code/ RUN pip install -r dev.txt +RUN pip install --upgrade pip +# This command is for swagger api docs +RUN pip install --upgrade drf-yasg + CMD ["./docker/wait-for-it.sh", "db:5432", "--", "sh", "/code/docker/dev/django/container-start.sh"] From cc031c88ca68d536380a4427b74381417f1c701a Mon Sep 17 00:00:00 2001 From: hj Date: Sat, 17 Aug 2024 16:45:27 +0530 Subject: [PATCH 2/2] Swagger api fix --- docker/dev/django/Dockerfile | 4 ---- requirements/common.txt | 2 +- requirements/dev.txt | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/docker/dev/django/Dockerfile b/docker/dev/django/Dockerfile index c4f1af0284..9c4b5f9a52 100644 --- a/docker/dev/django/Dockerfile +++ b/docker/dev/django/Dockerfile @@ -8,8 +8,4 @@ WORKDIR /code ADD requirements/* /code/ RUN pip install -r dev.txt -RUN pip install --upgrade pip -# This command is for swagger api docs -RUN pip install --upgrade drf-yasg - CMD ["./docker/wait-for-it.sh", "db:5432", "--", "sh", "/code/docker/dev/django/container-start.sh"] diff --git a/requirements/common.txt b/requirements/common.txt index 2bbdad0f71..1352b5f5c3 100644 --- a/requirements/common.txt +++ b/requirements/common.txt @@ -16,7 +16,7 @@ django-rest-auth[with_social]==0.9.5 django-ses==1.0.3 docker-compose==1.27.4 drfdocs==0.0.11 -drf-yasg==1.17.0 +drf-yasg==1.21.7 importlib-metadata<5.0 kubernetes==12.0.1 moto==1.3.14 diff --git a/requirements/dev.txt b/requirements/dev.txt index 56bc3943cb..dac57e73f4 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,5 +1,5 @@ -r common.txt - +pip==24.0 autopep8==1.5.4 black==20.8b1 coverage==5.3