質問編集履歴
1
情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -59,4 +59,9 @@
|
|
59
59
|
if not obj.is_public and not self.request.user.is_authenticated:
|
60
60
|
raise Http404
|
61
61
|
return obj
|
62
|
+
```
|
63
|
+
urls.py
|
64
|
+
```python
|
65
|
+
path('<slug:post_id>/like/', like, name='like'),
|
66
|
+
path('post/<slug:pk>/', PostDetailView.as_view(), name='post_detail'),
|
62
67
|
```
|