Why is my narrate_update_form template not showing? And why am I getting
TemplateDoesNotExist at /narration/7/edit/
narrate_update_form
My views.py is:
class NarrateUpdate(UpdateView):
model = Narrate
fields = ['title', 'body']
template_name = 'narrate_update_form'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['narrate'] = Narrate.objects.get(pk=self.kwargs['pk'])
return context
On my narrate template I have this button:
…Answer:
template_name = 'narrate_update_form.html'
Silly mistake