urls.py 216 B

123456789
  1. from django.urls import path
  2. from .views import ads, AdDetailView, comments
  3. urlpatterns = [
  4. path('ads/<int:pk>/comments/', comments),
  5. path('ads/<int:pk>/', AdDetailView.as_view()),
  6. path('ads/', ads),
  7. ]