All Questions
Tagged with authentication django
2,877
questions
0
votes
0
answers
20
views
Django: Error sending email: (530, b'5.7.0 Authentication Required
I am working on a Django project and get the problem with sending email.
This is my code in views.py
class ForgotPasswordView(APIView):
def get(self, request):
return render(request, '...
0
votes
1
answer
23
views
How can I have a different method instead of user.is_authenticated? [duplicate]
I have an academy website , which has 3 different kinds of users. The first one is the staff that I handle with the admin panel. The second one is parents or people who are going to get some ...
0
votes
1
answer
60
views
Can login as superuser but not as normal user
i have made a super user and registering other users. but only able to log in as superuser and when i try to login as normal user its shows "Invalid phone number or password".
Can someone ...
0
votes
1
answer
21
views
dj-rest-auth with JWT (problem with login functionality)
I have problem with login functionality, when the first time I log in it returns csrf_token, access_token and refresh_token . and it works fine till the expiration time. I know when the access token ...
-1
votes
2
answers
25
views
TemplateDoesNotExist by inheriting LoginView
django cannot find my template but I give it correct path
I make customize view for login by inheriting LoginView and form_class of AuthenticationForm from django. I give correct template_name to view ...
1
vote
0
answers
16
views
Authenticating user on React frontend, against Django backend user groups using JWT
Having issues authenticating a user from React frontend, to Django backend using JWT Tokens.
I have a Django instance with check_auth view in views.py:
@csrf_exempt
@login_required
def check_auth(...
0
votes
1
answer
89
views
How to Implement a Guest Login in Django REST Framework
I currently have a backend setup where users can register by providing an email, name, and password. These fields are required for registration. I want to implement a guest login feature where a guest ...
0
votes
0
answers
43
views
Automatically updated created_by/updated_by with Django authenticated user
I have a BaseModel that looks like this:
class BaseModel(models.Model):
updated_by = models.ForeignKey(get_user_model(), related_name='+', on_delete=models.RESTRICT, db_column='updated_by')
...
0
votes
0
answers
32
views
Session Persistence Issue Between Two Django Projects Using Both JWT and Session Authentication
Background
Project A
Legacy system
Django full-stack server based on a template language
Using sessions for authentication
Python version 3.8
Django version 3.2
Project B
New project
JSON-based Django ...
0
votes
0
answers
10
views
Django authencation problem- two different authencation one for custom admin and other for worker
I am facing this problem again n again.
lemme explain you i am working on a complaint management site for my college, I have designed a separate customized admin panel which is working good, but the ...
0
votes
0
answers
32
views
Django Admin automatically logs me out when i click the save button and won't allow me log in again
Whenever I click the save button to add user on the django admin interface, it automatically logs me out and won't re-authenticate me despite being the superuser.
The design pattern: I created a class ...
0
votes
0
answers
21
views
Errors not displaying in login form in Django
In my Django project, I use django.auth for authentication. I have two similar HTML templates for registration and login. The problem is that while displaying errors (e.g., passwords don't match, ...
-1
votes
0
answers
15
views
Python Django admin side request and approval
Behalf of gym management project I need to request trainer to get access to gym website so, when trainers requested with his personal and professional details then, the admin can view the details and ...
0
votes
0
answers
12
views
Django + VueJS multiple user type
I'm having a problem in Vue.js with handling multiple users. Before transitioning to this integration, my previous authentication used mixins to handle privileges for each user. Now, I want to use Vue ...
0
votes
1
answer
25
views
In django class base view whenever I logged in, my user log in successfully but get this error page:Page not found (404)
I tried class base view in my blog website authorlogin. Every time I log in though, my author gets logged, but get a page of error. I have just convert login into class-based view but my author ...