updated settings

This commit is contained in:
idittrich-valueon 2025-03-09 10:50:07 +01:00
parent 6f72c651d4
commit e69cfc0807
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -2,5 +2,5 @@ from django.urls import path
from .views import sample_api
urlpatterns = [
path('api/data/', sample_api),
path('', sample_api),
]