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?
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 =
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
3 matches
Mail list logo