We have conflicting view declarations in the code snippets.
from django.http import HttpResponse
def entry_detail(request, pk):
return HttpResponse('empty')
And then later:
from django.views.generic import DetailView
from .models import Entry
class EntryDetail(DetailView):
model = Entry
entry_detail = EntryDetail.as_view()
We have conflicting view declarations in the code snippets.
And then later: