Resolved cache issues

parent e79a43fa
......@@ -4,7 +4,6 @@ from . import views
app_name = "forum"
urlpatterns = [
path('', views.index, name="index"),
path('<int:post_id>/', views.detail, name="detail"),
path('<int:post_id>/replies/', views.replies, name="replies")
path('posts/<int:post_id>/details/', views.detail, name="detail"),
# path('welcome', views.welcome, name='welcome')
]
\ No newline at end of file
......@@ -24,10 +24,6 @@ def detail(request, post_id):
return render(request, "forum/detail.html", {"post": post})
# return HttpResponse("These are the details for post # %s" % author_id)
def replies(request, post_id):
reply_out = "These are the replies to post # %s."
return HttpResponse(reply_out % post_id)
# def welcome(request):
# forum_view = "FORUM POSTS: "
# # posts = Post.objects.all()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment