Weird. It looks correct to me. I'm out of ideas, sorry.
Julien Enselme
Développeur chez BureauxLocaux
Le jeu. 5 sept. 2019 à 11:55, Pasquale a écrit :
> On 04/09/19 10:24, Julien Enselme wrote:
>
> Did you do the reverse with 'reviews:detail'?
>
> >>>
> reverse("review:detail")
>
> Traceback (
On 04/09/19 10:24, Julien Enselme wrote:
> Did you do the reverse with 'reviews:detail'?
>>>
reverse("review:detail")
Traceback (mo
On 04/09/19 10:24, Julien Enselme wrote:
> Did you do the reverse with 'reviews:detail'?
>>>
reverse("review:detail")
Traceback (mo
Did you do the reverse with 'reviews:detail'?
Can you post your new urls.py and the code you use to do the reverse?
Julien Enselme
Développeur chez BureauxLocaux
Le mer. 4 sept. 2019 à 00:35, Pasquale a écrit :
> Applied your suggestion,now I get
> django.urls.exceptions.NoReverseMatch: Revers
Applied your suggestion,now I get
django.urls.exceptions.NoReverseMatch: Reverse for 'detail' not found.
'detail' is not a valid view function or pattern name.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and st
namespace is an argument of the include function and you can remove the
name argument to path.
Julien Enselme
Développeur chez BureauxLocaux
Le mar. 3 sept. 2019 à 13:28, Pasquale a écrit :
> I did put reviews/urls.py:
>
> from django.urls import path, include
> from . import views as v
> app_n
I did put reviews/urls.py:
from django.urls import path, include
from . import views as v
app_name="review"
urlpatterns = [
path("", v.ReviewsDetail.as_view(), name="detail"),
]
Also if I replace name parameter with namespace I get:
TypeError: _path() got an unexpected keyword argument 'namesp
Hi,
- I don't see where you include the urls from the reviews app in your main
urls.py file.
- To use the "review:detail" notation, you need to enable namespaces.
So it seems that what you lack in your mysite/urls.py file is
path("reviews/", include("reviews.urls", namespace="reviews")) You shoul
8 matches
Mail list logo