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), ]