Django is rendering same for different html page

I have a page (model.html), that gets outputted based on URL parameters. At the bottom I set the if-else condition and based on the if-else parse it has href to another page with different view.

Now this new page (end.html) from the bottom link at model.html is still rendering view of model.html, instead of rendering the view of end.html file

Everything is perfectly coupled.

Please help

You’re going to need to provide a lot more details about this. Please post the view(s) and the template(s) involved.

When posting code, templates, error messages and tracebacks here, enclose the code (or template) between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code (or template) properly formatted.