I have in mysite/urls.py:

from django.contrib import admin
from django.urls import include, path
from django.contrib.auth import views as auth_views
from django.conf import settings
from .views import *

urlpatterns = [
    path('admin/', admin.site.urls, name="admin"),
    path("places/", include("places.urls"), name="places"),
    path("review/", include('django_comments_xtd.urls'), name="review"),
    path('accounts/', include('allauth.urls')),
    path("", HomeView.as_view(), name="home")
]

if settings.DEBUG:
    import debug_toolbar
    urlpatterns += [
        path('__debug__/', include(debug_toolbar.urls)),
    ]


and in 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"),
]
but if I do reverse("review:detail) I get a NoReverseMatch.

How?


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a3e47da2-b257-5f61-3510-cfaed6c2d752%40gmail.com.

Reply via email to