MENU

Fun & Interesting

Python Django - Build Inline Formsets (with CBV's) Example 1

Very Academy 38,896 4 years ago
Video Not Working? Fix It Now

A Python Django Inline Formset example tutorial using Class-based views and inline formsets. In this example we use TemplateView, ListView, CreateView, DetailView, FormView, SingleObjectMixin, FormView overrides get/post/get_form to build a work example whereby with Inline Formsets work with 2 models data to update, delete, save from a single form. 00:00 Introduction 01:13 Build preview 03:23 Learning about Inline Formsets Step-0 06:27 Setup project folder and venv 07:41 Create new project 07:48 Create a new project 08:17 Add project to settings 08:32 Project models Step-1 12:56 Build homepage URL 15:49 Homepage (TemplateView) 17:31 Building Home/Base templates Step-2 23:23 Building authors list page URL 25:04 Authors list view (ListView) 27:10 Authors list template 30:40 Superuser and add models to admin Step-3 36:05 Create new authors URL 36:50 Create new author class (CreateView) 43:32 Create author template Step-4 48:11 Show author detail URL 49:53 Show author view (DetailView) 52:57 Show author template Step-5 (Working with Inlines) 01:01:22 Edit/Update/Delete/Save author books URL 01:03:10 Creating the view (SingleObjectMixin, FormView) 01:23:06 Building the form (inlineforset_factory) 01:31:25 Building the template Final Code Example: https://github.com/veryacademy/YT_Inline_Formset_CBV_Ex1 ✨ Support us - join us as a very academy member https://www.youtube.com/channel/UC1mxuk7tuQT2D0qTMgKji3w/join 👍SUBSCRIBE to get more free tutorials, courses and code snippets! http://www.youtube.com/channel/UC1mxuk7tuQT2D0qTMgKji3w?sub_confirmation=1 👍👍Follow us on Facebook https://www.facebook.com/Veryacademycom-113232103670580/ 👍👍👍Follow use on Twitter: https://twitter.com/VeryAcademy

Comment