From e69cfc08076b1fb61d5f2e94b3981f0ea3761d9c Mon Sep 17 00:00:00 2001 From: idittrich-valueon Date: Sun, 9 Mar 2025 10:50:07 +0100 Subject: [PATCH] updated settings --- backend/backend/settings.py | 2 ++ backend/backend/urls.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/backend/settings.py b/backend/backend/settings.py index 8adcff5a..9b1208b6 100644 --- a/backend/backend/settings.py +++ b/backend/backend/settings.py @@ -13,6 +13,8 @@ https://docs.djangoproject.com/en/5.1/ref/settings/ from pathlib import Path import os +PORT = os.environ.get('PORT', 8000) + # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent diff --git a/backend/backend/urls.py b/backend/backend/urls.py index 3844192f..25fe0283 100644 --- a/backend/backend/urls.py +++ b/backend/backend/urls.py @@ -2,5 +2,5 @@ from django.urls import path from .views import sample_api urlpatterns = [ - path('api/data/', sample_api), + path('', sample_api), ]