How does Django knows which template to render when?
In django views, for each view we write at the end
return render(request, 'your template location')
That is how django knows which template to render for which view.
I am on 4th chapter the book Django 3 by example and I noticed one thing that we are only creating views from Django's authentication framework but we are not telling those views which template to render when.
For example, how does my application would know that it needs to only render the logged_out.html template when we try to access the logout view? If I try to change the name of the file from logged_out.html to loggedout.html then it takes me to the Django's admin logout page.
Why?