From f87a4a9203790fa87858961a3eddf0855d163079 Mon Sep 17 00:00:00 2001 From: Gabriel Coloma Date: Sat, 9 Mar 2024 13:16:20 -0600 Subject: [PATCH 1/3] Added dependencies to download in DjangoDeployment.yml --- .github/workflows/DjangoDeployment.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/DjangoDeployment.yml b/.github/workflows/DjangoDeployment.yml index 5058343..85b74df 100644 --- a/.github/workflows/DjangoDeployment.yml +++ b/.github/workflows/DjangoDeployment.yml @@ -50,7 +50,10 @@ jobs: source venv/bin/activate - name: Install dependencies - run: pip install -r requirements.txt + run: | + pip install -r requirements.txt + pip install djangorestframework + pip install django-cors-headers # Optional: Add step to run tests here (PyTest, Django test suites, etc.) From 0700947850b204e65c2ff63709dd3fe3d824dc1f Mon Sep 17 00:00:00 2001 From: Gabriel Coloma Date: Sat, 9 Mar 2024 17:17:46 -0600 Subject: [PATCH 2/3] Setup DjangoDeployment --- .github/workflows/DjangoDeployment.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/DjangoDeployment.yml b/.github/workflows/DjangoDeployment.yml index 85b74df..f62a5df 100644 --- a/.github/workflows/DjangoDeployment.yml +++ b/.github/workflows/DjangoDeployment.yml @@ -20,8 +20,8 @@ name: Build and deploy Python app to Azure Web App env: - AZURE_WEBAPP_NAME: your-app-name # set this to the name of your Azure Web App - PYTHON_VERSION: '3.8' # set this to the Python version to use + AZURE_WEBAPP_NAME: lvlupgg-backend # set this to the name of your Azure Web App + PYTHON_VERSION: '3.10' # set this to the Python version to use on: push: @@ -54,6 +54,7 @@ jobs: pip install -r requirements.txt pip install djangorestframework pip install django-cors-headers + python manage.py migrate # Optional: Add step to run tests here (PyTest, Django test suites, etc.) From abce1df71ce07a309b9531be47ba8a8c446e3ae7 Mon Sep 17 00:00:00 2001 From: Gabriel Coloma Date: Sat, 9 Mar 2024 17:25:45 -0600 Subject: [PATCH 3/3] Removed python manage.py migrate --- .github/workflows/DjangoDeployment.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/DjangoDeployment.yml b/.github/workflows/DjangoDeployment.yml index f62a5df..2539ccd 100644 --- a/.github/workflows/DjangoDeployment.yml +++ b/.github/workflows/DjangoDeployment.yml @@ -54,7 +54,6 @@ jobs: pip install -r requirements.txt pip install djangorestframework pip install django-cors-headers - python manage.py migrate # Optional: Add step to run tests here (PyTest, Django test suites, etc.)