Try adding for action to your add_comment url then submit the form. I guess currently form is getting submitted in the same page.
On Friday, October 12, 2018 at 12:00:03 PM UTC+5:30, Robert CR wrote: > > here is the template file. > > *add_comment.html* > > > > *{% extends "blog/base.html" %}{% load crispy_forms_tags %}{% block > content %} <div class="content-section"> <form method="POST"> {% > csrf_token %} <fieldset class="form-group"> <legend > class="border-bottom mb-4">Comment</legend> {{ form|crispy }} > </fieldset> <div class="form-group"> <button class="btn > btn-outline-warning" type="submit">Post Comment!</button> </div> > </form> </div>{% endblock content %}* > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/aeaadfcb-38b7-4db2-9921-1c8c2485fd5e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.