We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
here is my code in views, can you plz help me with logout session.
def loginPage(request): if request.method == 'POST': username = request.POST.get('username') password = request.POST.get('password') if get_LDAP_user(username,password) is None: return HttpResponse ('You ID does not exit') try: user = User.objects.get(username=username) except User.DoesNotExist: user = User(username=username) user.is_staff = True user.save() return HttpResponse ('You are entered') # print(user) my_context = {} return render(request,"login.html",my_context)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
here is my code in views, can you plz help me with logout session.
def loginPage(request): if request.method == 'POST': username = request.POST.get('username') password = request.POST.get('password') if get_LDAP_user(username,password) is None: return HttpResponse ('You ID does not exit') try: user = User.objects.get(username=username) except User.DoesNotExist: user = User(username=username) user.is_staff = True user.save() return HttpResponse ('You are entered') # print(user) my_context = {} return render(request,"login.html",my_context)
The text was updated successfully, but these errors were encountered: