1
0
mirror of synced 2025-12-28 07:23:24 +00:00

basic server (learning :') )

This commit is contained in:
Valentin
2023-11-15 11:02:25 +01:00
parent 5ff43ae722
commit 7768ea4a7f
3 changed files with 14 additions and 20 deletions

7
server/urls.py Normal file
View File

@@ -0,0 +1,7 @@
from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="index"),
]

View File

@@ -1,3 +1,5 @@
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Hello world.")