from django.shortcuts import render 
from django.views import View
from django.views.generic import TemplateView


# def homepage(request):
#     return render(request, 'core/index.html')
    

# class Homeview(View):
#     def get(self,request,*args,**kwargs):
#         return render(request, 'core/index.html')

class HomeView(TemplateView):
    template_name = 'core/index.html'

def profile(request):
    user = request.user
    profile_object = user.profile
    return render(request, 'core/profile.html', {'profile': profile_object })

