Advertisement
Guest User

Untitled

a guest
Feb 4th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. def login_view(request):
  2. if request.method=="POST":
  3. username = request.POST.get('username')
  4. password = request.POST.get('password')
  5. print "username:",username,"password",password
  6. return login_user(request, username, password)
  7. return render(request, 'ncqs/login.html')
  8.  
  9. LOGIN_URL = '/ncqs/login'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement