def login_view(request):
6 email = request.POST.get('email', '')
7 password = request.POST.get('password','')
8 user = authenticate(email=email, password=password)
9
10 if user is not None:
11 login(request, user)