feat(django): failure django is not faster than base python, but is WAAAAAYYY EASIER to code in endpoints, and can work with nginx

This commit is contained in:
darkicewolf50
2024-11-26 21:19:53 +00:00
parent 8f59972e19
commit 0c60ffc5ed
28 changed files with 112 additions and 5 deletions

View File

@ -1,11 +0,0 @@
import json
from django.http import HttpResponse
def index(request):
ymlschedule = {"message": False}
res = {
"statusCode": 200,
"isBase64ENcoded": "false",
"body": json.dumps(ymlschedule)
}
return HttpResponse(json.dumps(res))

View File

@ -1,9 +1,12 @@
from django.urls import path
from . import views
from . import newtest
# , newtest, getAppointments, selectAppointment
urlpatterns = [
path("", views.index, name="index"),
path("test", newtest.index, name="index")
# path("test", newtest.index, name="index"),
# path("getSchedule", getAppointments.index, name="index"),
# path("postSelectAppointment", selectAppointment.index, name="index"),
]