Resolved cache issues

parent e79a43fa
...@@ -4,7 +4,6 @@ from . import views ...@@ -4,7 +4,6 @@ from . import views
app_name = "forum" app_name = "forum"
urlpatterns = [ urlpatterns = [
path('', views.index, name="index"), path('', views.index, name="index"),
path('<int:post_id>/', views.detail, name="detail"), path('posts/<int:post_id>/details/', views.detail, name="detail"),
path('<int:post_id>/replies/', views.replies, name="replies")
# path('welcome', views.welcome, name='welcome') # path('welcome', views.welcome, name='welcome')
] ]
\ No newline at end of file
...@@ -24,10 +24,6 @@ def detail(request, post_id): ...@@ -24,10 +24,6 @@ def detail(request, post_id):
return render(request, "forum/detail.html", {"post": post}) return render(request, "forum/detail.html", {"post": post})
# return HttpResponse("These are the details for post # %s" % author_id) # 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): # def welcome(request):
# forum_view = "FORUM POSTS: " # forum_view = "FORUM POSTS: "
# # posts = Post.objects.all() # # 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