Class Based Views Flashcards

1
Q

Import from

A

① djongo.views.generic
② django.views.generic.edit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

CreateView- detailview

A

Class PersonList ( Create view):
model: person
template_name: name of template
success _url: ( to redirect to if get _absolute_url is not specified)

class Person( DetailView):
Model: Person
template_name :
success_url:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly