updated settings
This commit is contained in:
parent
6f72c651d4
commit
e69cfc0807
2 changed files with 3 additions and 1 deletions
|
|
@ -13,6 +13,8 @@ https://docs.djangoproject.com/en/5.1/ref/settings/
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
PORT = os.environ.get('PORT', 8000)
|
||||||
|
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,5 @@ from django.urls import path
|
||||||
from .views import sample_api
|
from .views import sample_api
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('api/data/', sample_api),
|
path('', sample_api),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue