Tuesday, September 3, 2019

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

I did put reviews/urls.py:

from django.urls import path, include
from . import views as v
app_name="review"
urlpatterns = [
    path("<int:pk>", v.ReviewsDetail.as_view(), name="detail"),
]
Also if I replace name parameter with namespace I get:
TypeError: _path() got an unexpected keyword argument 'namespace'


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f58dce8c-b602-4383-e122-cd3f6324f923%40gmail.com.

No comments:

Post a Comment