Answer the question
In order to leave comments, you need to log in
Is it possible to make a reference to the DateDetailView class?
Is it possible to make a reference to the DateDetailView class for the template?
By type (link in template url 'bboard:detail' pk=bb.pk) - (url " path('detail/int:pk>/', BbDetailView.as_view(), name = 'detail'),"
In this same class uses link parameters not only pk " path('detaill/int:year>/int:month>/int:day>/int:pk>/', BbbDetailView.as_view(), name = 'detaill')," , respectively, the link as for detail does not work. That is, with a regular link in templates, we specify the name on the url (url name) and the key or slug (pk, for example, if the link is associated with some objects). But in the DateDetailView class in the url parameters the year, month, day and pk are added, is it possible to make a working link in the templates according to these parameters or directly in any way?
Is it possible to implement such a reference for a template on this class, or only through the use of other classes or functions?
PS some parts of the code have been erased to display the full text.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question