Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

django.urls.exceptions.NoReverseMatch: Reverse for 'redirect' not found. #6

Open
mirodil1 opened this issue Jun 26, 2023 · 0 comments

Comments

@mirodil1
Copy link

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.

class UserRegisterationAPIView(RegisterView):
    """
    Register new users using phone number or email and password.
    """
    serializer_class = UserRegisterSerializer

    def create(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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant