We are making Account App
-계정관련된 앱을 만들어야함.
1.
Sign UP
2.
View info
3.
Change info
4.
Quit
CRUD
-Create Read Update Delete
django가 crud에서 강한건, 각 curd마다 view를 따로 만들 수 있음.
Class Based View vs Function Based View
ex)
class AccountCreateView(generic.CreateView):
model = User
form_class = AccountCreateForm
success_url = reverse_lazy('app:list')
template_name = 'accountapp/accountapp_create.html'
Python
복사