from django.shortcuts import render
from .models import Destination
# Create your views here.
def index(request):
dest1 = Destination()
dest1.name ='Jaipur'
dest1.desc ='The pink city Gulaabi nagar'
dest1.price = 900
def index(request):
dest2 = Destination()
dest2.name ='Udaipur'
dest2.desc ='The city of lakes'
dest2.price = 1200
def index(request):
dest3 = Destination()
dest3.name ='Bharatpur'
dest3.desc ='The city of warriors'
dest3.price = 1100
dests =[dest1, dest2 , dest3]
return render(request,"index.html",{'dests':dests})