Answer the question
In order to leave comments, you need to log in
Tell me please, how can I find out what is passed in the dictionary to the template?
class MovieDetailView(DetailView):
"""Вывод детальной информации о фильме"""
model = Movie
template_name = 'movie/movie_detail.html'
context_object_name = 'movie'
def get_context_data(self, **kwargs):
context = super(MovieDetailView, self).get_context_data(**kwargs)
context['title'] = 'привет'
return context
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