You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am getting error django.urls.exceptions.NoReverseMatch: Reverse for 'redirect' not found. 'redirect' is not a valid view function or pattern name. when creating user.
classUserRegisterationAPIView(RegisterView):
""" Register new users using phone number or email and password. """serializer_class=UserRegisterSerializerdefcreate(self, request, *args, **kwargs):
serializer=self.get_serializer(data=request.data)
serializer.is_valid(raise_exception=True)
user=self.perform_create(serializer)
headers=self.get_success_headers(serializer.data)
user = self.perform_create(serializer) this line of code causing the error.
The text was updated successfully, but these errors were encountered:
Hi, I am getting error
django.urls.exceptions.NoReverseMatch: Reverse for 'redirect' not found. 'redirect' is not a valid view function or pattern name.
when creating user.user = self.perform_create(serializer)
this line of code causing the error.The text was updated successfully, but these errors were encountered: