filmov
tv
43 - Create Basic Class Based Views CRUD - Django | DRF | React w. Data Analysis
Показать описание
Useful links:
About this video:
In this video we will sprint through very basic Class Based Views in Django to see how much functionality we can get out of very little code. We’ll be looking at ListView, DetailView, CreateView, UpdateView and DeleteView - covering all CRUD operations.
Video Content:
00:00 Intro
00:25 Change FloatFields to DecimalFields for better money handling
02:28 Why Class Based Views?
02:46 Basic Class Based Views in Django
03:40 Write simple ListView
06:08 Write simple CreateView
08:44 Register Class Based Views in urls
10:53 Start creating templates for Class Based Views
12:03 Small fix (use reverse_lazy)
12:29 HTML for CreateView
14:57 HTML for ListView
18:29 Use get_fieldname_display to display string when using IntegerChoices
19:09 Test if views work
19:40 Write simple DetailView
20:23 Resister DetailView to urls
20:42 Add link to list view to open detail view
21:46 HTML for DetailView
24:46 Write simple UpdateView
25:34 Register UpdateView in urls
26:42 Test update view
27:28 Write simple DeleteView
28:25 Register DeleteView in urls
28:52 HTML for DeleteView
30:19 Recap today’s work
33:14 Conclusion on Class Based Views
Tutorial repo:
About this tutorial:
The primary goal of this tutorial is to take you through the steps of creating a solid Django portfolio project that will stand out when you talk to your future employer.
Check out tutorial's intro to see if it's something for you:
Please hit SUBSCRIBE if you wanna get the notifications about the new content!
Also, like the hell out of this video if you find it useful/interesting!
About this video:
In this video we will sprint through very basic Class Based Views in Django to see how much functionality we can get out of very little code. We’ll be looking at ListView, DetailView, CreateView, UpdateView and DeleteView - covering all CRUD operations.
Video Content:
00:00 Intro
00:25 Change FloatFields to DecimalFields for better money handling
02:28 Why Class Based Views?
02:46 Basic Class Based Views in Django
03:40 Write simple ListView
06:08 Write simple CreateView
08:44 Register Class Based Views in urls
10:53 Start creating templates for Class Based Views
12:03 Small fix (use reverse_lazy)
12:29 HTML for CreateView
14:57 HTML for ListView
18:29 Use get_fieldname_display to display string when using IntegerChoices
19:09 Test if views work
19:40 Write simple DetailView
20:23 Resister DetailView to urls
20:42 Add link to list view to open detail view
21:46 HTML for DetailView
24:46 Write simple UpdateView
25:34 Register UpdateView in urls
26:42 Test update view
27:28 Write simple DeleteView
28:25 Register DeleteView in urls
28:52 HTML for DeleteView
30:19 Recap today’s work
33:14 Conclusion on Class Based Views
Tutorial repo:
About this tutorial:
The primary goal of this tutorial is to take you through the steps of creating a solid Django portfolio project that will stand out when you talk to your future employer.
Check out tutorial's intro to see if it's something for you:
Please hit SUBSCRIBE if you wanna get the notifications about the new content!
Also, like the hell out of this video if you find it useful/interesting!