detailview in django code example
Example 1: django display view library
from django.views.generic.detail import DetailView
Example 2: django detailview
class YourView(DetailView):
model = YourModel
template_name = 'your_template.html'
from django.views.generic.detail import DetailView
class YourView(DetailView):
model = YourModel
template_name = 'your_template.html'