-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
group117
committed
Jul 6, 2024
1 parent
abf1948
commit 0560a93
Showing
8 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# api_urls.py | ||
|
||
from django.urls import path | ||
from . import views | ||
|
||
urlpatterns = [ | ||
path('', views.api_home, name='api_home'), | ||
path('test/', views.test_page, name='test_page'), | ||
] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# views.py | ||
|
||
from django.shortcuts import render | ||
from django.http import HttpResponse | ||
|
||
# Create your views here. | ||
def test_page(request): | ||
return HttpResponse('This is a test page to verify if the django setup works') | ||
|
||
def api_home(request): | ||
return HttpResponse('API Landing page') |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters