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.
|
2026-03-14 19:15:31 -06:00
|
|
|
# def index(request):
|
|
|
|
|
# tours = Tour.objects.all()
|
|
|
|
|
# context = {"tours": tours}
|
|
|
|
|
# return render(request, "tours/index.html", context)
|
2026-03-14 16:54:39 -06:00
|
|
|
|
|
|
|
|
# return HttpResponse("Asian Tours Agency")
|
2026-03-14 19:15:31 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def index(request):
|
|
|
|
|
return render(request, "static_page/index.html")
|