From b2a17ad8ecb30018a0d12172e9b7ea341fc515f6 Mon Sep 17 00:00:00 2001 From: Drikus Roor Date: Mon, 5 Feb 2024 12:30:14 +0100 Subject: [PATCH] chore(deps): Add django-debug-toolbar to base.txt for development and test server --- backend/Dockerfile | 5 +---- backend/requirements.in/base.txt | 3 +++ backend/requirements.in/dev.txt | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 296266c14..3203cdf09 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -9,7 +9,4 @@ COPY requirements/prod.txt /server/ RUN pip install -r prod.txt # We add remainig code later, so pip install won't need to rerun if source code changes -COPY . /server/ - -# Add the dev tools if AML_DEBUG is set to true -RUN if [ "$AML_DEBUG" = "true" ] ; then pip install django-debug-toolbar ; fi \ No newline at end of file +COPY . /server/ \ No newline at end of file diff --git a/backend/requirements.in/base.txt b/backend/requirements.in/base.txt index 8655debdb..c5607150c 100644 --- a/backend/requirements.in/base.txt +++ b/backend/requirements.in/base.txt @@ -34,3 +34,6 @@ coverage # Generate a code coverage badge genbadge[coverage] + +# Debug toolbar for development (and test server) +django-debug-toolbar \ No newline at end of file diff --git a/backend/requirements.in/dev.txt b/backend/requirements.in/dev.txt index 58728f34b..5f3d4ce08 100644 --- a/backend/requirements.in/dev.txt +++ b/backend/requirements.in/dev.txt @@ -1,8 +1,5 @@ -r base.txt -# Debug toolbar for development -django-debug-toolbar - # Codebase checker pylint