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

2019-09-06 Thread Julien Enselme
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 (

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

2019-09-05 Thread Pasquale
On 04/09/19 10:24, Julien Enselme wrote: > Did you do the reverse with 'reviews:detail'? >>> reverse("review:detail")   Traceback (mo

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

2019-09-05 Thread Pasquale
On 04/09/19 10:24, Julien Enselme wrote: > Did you do the reverse with 'reviews:detail'? >>> reverse("review:detail")   Traceback (mo

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

2019-09-04 Thread Julien Enselme
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

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

2019-09-03 Thread Pasquale
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

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

2019-09-03 Thread Julien Enselme
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

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

2019-09-03 Thread Pasquale
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

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

2019-09-03 Thread Julien Enselme
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