my index page

This commit is contained in:
Basyrov Rustam
2025-06-03 23:26:16 +03:00
parent b4f6dc48e7
commit 92c12e7d33
2 changed files with 4 additions and 0 deletions

View File

@@ -4,4 +4,5 @@ from . import views
urlpatterns = [ urlpatterns = [
path("", views.index, name="index"), path("", views.index, name="index"),
path("index2/", views.index2, name="index2"),
] ]

View File

@@ -3,3 +3,6 @@ from django.http import HttpResponse
def index(request): def index(request):
return HttpResponse("Hello, world. You're at the polls index.") return HttpResponse("Hello, world. You're at the polls index.")
def index2(request):
return HttpResponse("Hello from Django!")