diff --git a/worldtour/asiatoursagency/templates/tours/index.html b/worldtour/asiatoursagency/templates/tours/index.html new file mode 100644 index 0000000..4c75c4f --- /dev/null +++ b/worldtour/asiatoursagency/templates/tours/index.html @@ -0,0 +1,16 @@ + + + + + + Asia Tours + + +

Asia Tours Schedule for June 2025

+ + + \ No newline at end of file diff --git a/worldtour/asiatoursagency/views.py b/worldtour/asiatoursagency/views.py index 22869da..4c1d2a6 100644 --- a/worldtour/asiatoursagency/views.py +++ b/worldtour/asiatoursagency/views.py @@ -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)