Re: Problems in Django login authentication

2023-07-31 Thread Mh Limon
el or abstract base user model in your user >> model and after that define auth.model in settings.py hope its work >> >> Sent from my iPhone >> >> On 30-Jul-2023, at 10:45 AM, Abdulrahman Abbas >> wrote: >> >>  >> Can you login with superuser?

Problems in Django login authentication

2023-07-29 Thread Mh Limon
Views.py file from django.shortcuts import render,HttpResponse,redirect from .models import registration from django.contrib.auth import authenticate,login def home(request): return render(request,'home.html') def log_in(request): if request.method == 'POST': username =

User log in authentication problem in Django

2023-07-29 Thread Mh Limon
This is my views.py code. when providing the correct username and password, the system consistently displays an error message stating "You have incorrect Username or password." from django.shortcuts import render,HttpResponse,redirect from .models import registration from django.contrib.auth