comment delete

This commit is contained in:
Parsa Nazer
2024-12-12 18:36:18 +03:30
parent 30f5ca97f1
commit ec19f2ded9
4 changed files with 38 additions and 13 deletions
+1 -3
View File
@@ -16,11 +16,9 @@ urlpatterns = [
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
path('admin/', admin.site.urls),
path('schema/', SpectacularAPIView.as_view(), name='schema'),
path('comment/<int:product_pk>', views.CommentView.as_view(), name='comment-list'),
path('comment/<int:pk>', views.CommentView.as_view(), name='comment-list'),
path('', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)