79373987

Date: 2025-01-21 10:20:15
Score: 1
Natty:
Report link

I found my problem in that I have many html files templates, so I forgot to add which html files templates the Following button needs to render to.

views.py:

def post_following(request):
return HttpResponseRedirect(reverse("index"))

urls.py:

    path("post/following", views.post_following, name="post-following"),

layout.html:

<a id="following" class="nav-link" href="{% url 'post-following' %}">Following</a>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dinh Khoi Nguyen