namespace is an argument of the include function and you can remove the name argument to path.
Julien Enselme
Développeur chez BureauxLocauxLe mar. 3 sept. 2019 à 13:28, Pasquale <pasqui023@gmail.com> a écrit :
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.
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/CAL%3D_h26cjdud%2BDYfEsaX70ME4WQM98%2BM3gso7-38twRcq6zysw%40mail.gmail.com.
No comments:
Post a Comment