Questions tagged [django-auth-models]
39 questions
0
votes
1 answer
Django Custom User Model and SuperUser
I am trying to create an app which a web3 user can use their wallet to sign in BUT I want the superuser to still use a username/password. (my future plan is to create a custom backend to do the web3 auth flow)
I was close with this as I was able to…

Kyle Calica-St
- 2,629
- 4
- 26
- 56
0
votes
0 answers
Server Error 500 while authentication | Django
Having server error 500 when trying to save user record and authenticating him to the dashboard.
CODE
user_id = 5
unique_username = "kashif"
user = User.objects.get(pk=user_id)
user.unique_username = unique_username
user.is_active = True
useremail =…

Asim iftikhar
- 11
- 2
0
votes
2 answers
Django custom user error when registering: get_session_auth_hash() missing 1 required positional argument: 'self' (new user can otherwise log in)
I am aware of this answer: TypeError: get_session_auth_hash() missing 1 required positional argument: 'self', but I am not using a custom backend and the error in question happens when registering a new user through a Django form, not when logging…

justajolt
- 141
- 11
0
votes
1 answer
DoesNotExist: Getting "Group matching query does not exist." error while saving a UserCreationForm of Django
I'm trying to save UserCreationForm of Django's built in auth application's form, using following in forms.py
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django import forms
from .models…

Jatin Singh Bhati
- 133
- 1
- 3
- 14
0
votes
1 answer
Unable to send mail using django PasswordResetView?
I've used django's User model for authentication, now I added password reset for my project,
User is not getting any email but in terminal I am getting this message, and I am doing all of these in my local computer
In my terminal
You're receiving…

pavan kumar
- 125
- 3
- 10
0
votes
1 answer
1048, "Column 'last_name' cannot be null" Django AbstractUser
I'm trying to create a registration for each new account using the UserCreationForm from the form to CreateView class-base view generics from views, from my customize auth model using AbstractUser but everytime submit the form it gives me this…

User Unknown
- 1,079
- 1
- 7
- 17
-1
votes
1 answer
How to redirect to 2 different app in django, base on the user group from single login url
I have the following scenario:
My project has two different Django apps, Dashboard and FrontView, with different user groups.
Current login urls are as below:
http://127.0.0.1:8000/dashboard/login
http://127.0.0.1:8000/front/login
However, I have a…

cHaNkx
- 15
- 2
-1
votes
1 answer
Django authentication/user create functions
I'm trying to start a project in Django, where users can register on my site and subsequently login/logout when they visit it.
I have found a template for a user creation view, that looks like this:
from django.views.generic import CreateView
from…

user3617992
- 359
- 1
- 8