Pasquale
unread,Sep 2, 2019, 9:39:57 AM9/2/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
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?