Re: Problems in Django login authentication

2023-07-29 Thread Prashanth Patelc
Use default django user model from django.contrib.auth.models import User # Create your models here. class Registration (models.Model): author = models.ForeignKey(User, on_delete=models.CASCADE) # write your fields here In settings.py AUTH_USER_MODEL = app name . Modelname On Sun, Jul

Re: Problems in Django login authentication

2023-07-29 Thread Mohammad Ehsan Ansari
First extend abstract user model or abstract base user model in your user model and after that define auth.model in settings.py hope its workSent from my iPhoneOn 30-Jul-2023, at 10:45 AM, Abdulrahman Abbas wrote:Can you login with superuser?On Sun, Jul 30, 2023, 02:32 Mh Limon

Re: Problems in Django login authentication

2023-07-29 Thread Abdulrahman Abbas
Can you login with superuser? On Sun, Jul 30, 2023, 02:32 Mh Limon wrote: > 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

TabularInline

2023-07-29 Thread Tolga ÇAĞLAYAN
This is what tabularinline looks like. I want a table here instead. I want it to work like normal CRUD. Anyone have an idea about this? I don't want that [image: Ekran görüntüsü 2023-07-29 214456.png] I want like this [image: Ekran görüntüsü 2023-07-29 214733.png] -- You received this

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