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 message
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 = request.
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 impo
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 render(request,'home
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
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 3
6 matches
Mail list logo