Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
24 views

how to show user in TokenSerializer dj-rest-auth

I'm trying to return UserSerializer after successful login through dj-rest-auth. I followed the steps that were told in After login the `rest-auth`, how to return more information? which has a similar ...
Damir Talipov's user avatar
0 votes
0 answers
28 views

Validation in DR(Django)

I'm trying create customs validations to my serialiazer but Django just ignore them and return me DRF default errors. {'message': 'Erro ao criar camião', 'data': {'plate': [ErrorDetail(string='This ...
Tiago Lourenço's user avatar
0 votes
1 answer
34 views

Django decorator and middleware issue

My decorator looks like this def require_feature(feature_name): def decorator(view_func): print(f"process_view - view_func: {view_func}") # Debugging @wraps(view_func) ...
Jean's user avatar
  • 147
0 votes
0 answers
29 views

Django REST framework serializer.is_valid() saves files to MEDIA_ROOT although .is_valid() is False

I have a project which supports file uploads via Django forms and also Django REST framework, these files are used are stored in a model 'Document'. The issue is that when a file that fails validation ...
H0lyBruh's user avatar
0 votes
2 answers
25 views

Large GET Request to DRF causes 504 Gateawy Time-out

I have a database with about 3 million records, and I want to retrieve these records to be displayed by a Django web app. However, attempting to pass these via Model.objects.all() passed by templating ...
Casey's user avatar
  • 520
0 votes
0 answers
31 views

Django OTP Verification Through Email

Registration always goes in successful but then after submitting otp for verification, first error response "error":"authentication failed" and when I try again "error": ...
quarjo's user avatar
  • 1
0 votes
1 answer
32 views

Using Django REST Framework to make site cross-platform [closed]

I want to create cross platform site in Django, which can work with other clients, like my own c++ apps. Imagine someone creating social media in which you can post videos and articles. What I want is ...
user26482297's user avatar
0 votes
0 answers
23 views

Filterset_class does not working when view is called from test

I have a drf method view: @action(detail=False, methods=["get"], filterset_class=None) def count(self, request, *args, **kwargs): ... and of course, there is a ...
Pedit Ma's user avatar
0 votes
1 answer
16 views

django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'api.User' that has not been installed

I just create Django project and get this error django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'api.User' that has not been installed this my files settings ...
mehdi ahmadi's user avatar
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 ...
Shriyansh's user avatar
0 votes
1 answer
15 views

PUT metod make the password field are required and when i put the value in fields its save it as a text in th database with no hash

views.py from .serializers import CreateUser,ShowUser,MeSerializer,ChangePasswordSerializer from rest_framework import viewsets from django.contrib.auth.models import User from rest_framework....
Adham Ayman's user avatar
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 ...
webdeveloper's user avatar
0 votes
0 answers
28 views

Using Django Debug Toolbar With DRF, Simple JWT Auth

django-debug-toolbar needs its output to be html, but i am using apis with jwt authentication (djangorestframework-simplejwt). So i am unable to use debug toolbar. I have all the settings of IPs, ...
kaanha's user avatar
  • 1
0 votes
0 answers
19 views

Razorpay Integration in Django Project payment is not getting completed

I am integrating razorpay in django project. I am creating order through OrderPostApi. This is creating my order and my order_is getting saved in database. But when I call the payment_page view with ...
Hrithik karan's user avatar
0 votes
0 answers
19 views

Django is saving UUID without dashes in MySQL [closed]

I'm creating a Django application that uses UUID in some models. While i was using a MySQL database locally django was creating the UUID and saving it without dashes. Everything was working. Now i'm ...
Joao Pedro's user avatar

15 30 50 per page
1
2 3 4 5
1841