Hi,
There are defaults that are used for things like template_name. You should
strive to follow the templates, then you don't need to write that much code.
Check out the documentation for ListView:
I have two snap of code below. I want to know that in the first one I used
template_name='restaurants/restaurants_list.html' which is obvious if I
want to use a template but in the second one I have not specified the
template name even then it shows the correct web page.How?
class
2 matches
Mail list logo