[Answered ]-Why link not displaying content after click on the link?

0πŸ‘

βœ…

The data is passed as object to the context, as as con2, so you render this with:

{% block context %}
<h4>{{ con2.name }}</h4>
<h4>{{ con2.address }}</h4>
{% endblock context %}

The variable name of home.html is thus not somehow reused: after rendering the template, the context is no longer available. If the user clicks on another link, then it will visit that view, and thus restart the rendering process with a new context.

1πŸ‘

Try to write con2.name and con2.address. Because you are in the index_detail page an you mentioned con2 in view not a T1

πŸ‘€Abdusamad

Leave a comment