Django Class Based Views - Python Django CRM Course - Refactoring - Part 5

preview_player
Показать описание
In this course, I will teach you basic Django by building a CRM from scratch. I will begin by installing and setting up everything we need, and then build the project piece by piece.

In this part of the python django course, I will do some refactoring on the project. I will install Tailwind instead of using it as a CDN, and I will convert the whole lead app to use class based views instead of function based views.

---

Code With Stein Premium

Support me

Important links

---

#codewithstein #django #djangotutorial #tailwindcss
Рекомендации по теме
Комментарии
Автор

Good work! Just small note: instead of decorating 'dispatch' method in class-based views you can use 'LoginRequiredMixin' and add it to class inheritance, before 'ListView', 'CreateView', and others.

dyachoksa
Автор

Great refactoring. I also use namespace=' ' on the Url path.

madusan
Автор

Nice vid. For the usage of the lead_form as the form for both Update and Create I think it would be better to just use the template_name_suffix attribute. In that way, you could've used the lead_add and the lead_edit templates that were originally there to not overcomplicate stuff

miguelpinto
Автор

Great video. Please create a video on how to design database modals for complex application like social media or ecommerce. When it comes to create a project I am confused how to design the databases like where to add many to many relationship, etc.

facttrendz
Автор

Hi, Stein, thanks for continuing an interesting series. only now there is a new challenge for you - to dry the code out, for example, through mixins or, may be, there is another solution. It will be interesting to watch you meet it. Good luck. Have a nice day. Vik.

viksir
Автор

Such an excellent course, I learned so much about Django! But I must say this part was super confusing lol! I just started to get a bit more comfortable with Django on Part 1-4 then Boom! Class bassed views lol! Growth pains... Definetly taking your other courses as well!

DanielBooysenJR
Автор

by what principle should we rename the file to leads_edit.html? why exactly in lead_form.html?

MAKAROV.REALTY
Автор

There is only one user login. admin. I am unable to signup and login. it is showing value error now on signup views. code is same as your. also nobody except admin can access anything. it shows error. did you try.

sidds