2026-03-14 13:30:39 -06:00
|
|
|
from django.shortcuts import render
|
|
|
|
|
|
2026-03-14 16:54:39 -06:00
|
|
|
from .models import Tour
|
|
|
|
|
|
|
|
|
|
# from django.http import HttpResponse
|
|
|
|
|
|
2026-03-14 13:30:39 -06:00
|
|
|
|
|
|
|
|
# Create your views here.
|
|
|
|
|
def index(request):
|
2026-03-14 16:54:39 -06:00
|
|
|
tours = Tour.objects.all()
|
|
|
|
|
context = {"tours": tours}
|
|
|
|
|
return render(request, "tours/index.html", context)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# return HttpResponse("Asian Tours Agency")
|