views.generic.detail.SingleObjectTemplateResponseMixin.get_template_names()

get_template_names()

Returns a list of candidate template names. Returns the following list:

  • the value of template_name on the view (if provided)
  • the contents of the template_name_field field on the object instance that the view is operating upon (if available)
  • <app_label>/<model_name><template_name_suffix>.html
doc_Django
2016-10-09 18:41:03
Comments
Leave a Comment

Please login to continue.