from django.shortcuts import render
from .models import Destination 
# Create your views here.

def index(request):
     # dest1 = Destination()
     # dest1.name = 'Mumbai'
     # dest1.desc = 'The city that never sleeps'
     # dest1.img = 'destination_1.jpg'
     # dest1.price = 700
     # dest1.offer = False

     # dest2 = Destination()
     # dest2.name = 'Dhaka'
     # dest2.desc = 'The city is polluted'
     # dest2.img = 'destination_2.jpg'
     # dest2.price = 800
     # dest2.offer = True

     # dest3 = Destination()
     # dest3.name = 'Chittagong'
     # dest3.desc = 'The Language is too good'
     # dest3.img = 'destination_3.jpg'
     # dest3.price = 900
     # dest3.price = False

     dests = Destination.objects.all()

     # dests = [dest1,dest2,dest3]

     return render(request,'index.html',{'dests':dests})
