[Answer]-Django, update page with ajax

1👍

It is not a good practice to write:

<h2><a href="/blog/{{post.id}}">  {{ post.title }} </a> </h2>

Take a look at the {% url %} template tag.

Edit – Disclaimer: the current user has not enough rate to comment. That’s why this apparently answer-less answer is posted here.

Leave a comment