Step 3 (Views and Templates) inconsistent code snippets
Closed this issue · 0 comments
macro1 commented
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()