-
Notifications
You must be signed in to change notification settings - Fork 9
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
DuplicateServiceRegistrationError: Conflict with RedirectView registration #53
Comments
Hi, I think the issue stems from reusing the same class-based handler for multiple views, such as this, because the same class is registered multiple times. urlpatterns = [
path("template_view/foo", TemplateView.as_view(template_name="foo.html")),
path("template_view/bar", TemplateView.as_view(template_name="bar.html")),
] In the meantime to unblock yourself you can declare a new class and use that: class FooView(TemplateView):
template_name = "foo.html"
class BarView(TemplateView):
template_name = "bar.html"
urlpatterns = [
path("template_view/foo", FooView.as_view()),
path("template_view/bar", BarView.as_view()),
] The |
Hi, I think the changes branch You can use the following command:
|
@maldoinc Thank you for your quick response and the proposed workaround! I appreciate the detailed explanation.
I wanted to clarify that I am not using
Thank you for the update and the fix in the Since I use PDM as my package manager, I'll check how to install the branch using PDM instead of pip. Once I have tested the changes, I'll report back with the results. Thanks again for your support, and I appreciate the work you've done on WireUp! Best regards, |
I tested the
It seems that using Let me know if there’s anything else I can test or check. Thanks again for your assistance! |
I tried installing the I’m using the from django.contrib.auth.decorators import login_not_required
from django.utils.decorators import method_decorator
@method_decorator(decorator=login_not_required, name="dispatch")
class LoginView(View):
... With the
Would you have any insight into why this might be happening? |
No idea sadly. All the integration should be doing is to essentially wrap the init with the equivalent of I'll try to reproduce it when I can. In the meantime feel free to troubleshoot this, if you can get a fix out quicker I'd be happy to accept the contribution. |
Can you reinstall the branch via |
Hi, Thank you for the update! I installed the branch, and it seems to be working well now. The issue appears to be resolved. I appreciate your effort to reproduce and fix the issue. If I encounter anything else, I'll let you know. By the way, when can we expect a new release version? Best regards, |
This is now included in v0.15.1 |
Hello, Wouldn't it be simpler to include
Thank you! |
I didn't want to include it as a dependency because you'll only need it in some edge cases and the error tells you what to do and has its own page in the docs. It can be an optional dependency perhaps that one can install with |
Hello,
I encountered an issue with WireUp when using it in my Django project. Below is the full error trace:
Context
Thank you for your help!
The text was updated successfully, but these errors were encountered: