title: django login form without django authentication
body: <p>how to create a login form without using django inbuilt authentication.
  i have a table for username and password and i want to retrive data from that table and check it with user provided data.
  <strong>Views.py</strong></p>
  
  <p><code>from django.shortcuts import render
  from .models import studentDetails
  from .forms import loginForm
  </code>
  <code>def login(request):</code></p>
  
  <pre><code>form = loginForm(request.POST or None);
  if form.is_valid():
      name = request.POST['name']
      password = request.POST['password']
      query_set = studentDetails.objects.get(name=name)
      if password!=query_set.password:
          context.update({'alert': "wrong password"})
  
  
  context = {
      "form": form,
  }
  return render(request, "index.html", context)
  </code></pre>
  
  <p><code>def dashbord(request):
      return(request, "dashbord.html",{})</code></p>