Added dispalying of records

This commit is contained in:
2025-05-29 14:54:14 -04:00
parent 8270549d68
commit 5f2faa6dcc
2 changed files with 20 additions and 2 deletions

View File

@ -1,6 +1,8 @@
from django.shortcuts import render
from django.http import HttpResponse
from .models import Tour
# Create your views here.
def index(request):
return HttpResponse("Asia Tours Agency")
tours = Tour.objects.all()
context = {'tours': tours}
return render(request, 'tours/index.html', context)