from django.contrib.auth import(
	authenticate,
	get_user_model,
	login,
	logout,
	)
from django.shortcuts import render
from .forms import UserLoginForm
# Create your views here.
def login_view(request):
	
	form = UserLoginForm(request.POST or None)
	if form.is_valid():
		username = cleaned_data.get("username")
		password = cleaned_data.get('password')
	
	return render(request,"login.html",{"form":form})

def home_page_view(request):

	return render(request,"index.html")