How To Add Calculated Fields To Models - Django Wednesdays #40

  Рет қаралды 22,988

Codemy.com

Codemy.com

Күн бұрын

Пікірлер: 49
@Codemycom
@Codemycom 3 жыл бұрын
▶️ Watch Entire Django Wednesdays Playlist ✅ Subscribe To My KZbin Channel: bit.ly/35Xo9jD bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶️ Get The Code bit.ly/3sJpeV6
@Clussy123
@Clussy123 3 жыл бұрын
fantastic video as always! This channel should be the biggest coding channel on youtube! edit: typo
@Codemycom
@Codemycom 3 жыл бұрын
Wow, thanks!
@brunomandela3480
@brunomandela3480 Жыл бұрын
yo man you have no idea how this has helped out even that second @properties you did ,esspecially that one, fixed a lot of problems for me. Keep making more great content and stay blessed brother.
@Codemycom
@Codemycom Жыл бұрын
Happy to hear it!
@joachimkre5682
@joachimkre5682 2 жыл бұрын
Un bon exposé. Mes félicitations pour tout ce que vous faites. Je voudrais rappeler que la différence entre 2 dates en Python ne fait pas apparaitre "days 00:00:00" quand les deux dates sont égales. Par conséquent, le split() donnera une erreur. Merci
@collen89c5
@collen89c5 Жыл бұрын
Thanks my man you realy saved the day , great video Assist pliz -- how do i compare todays current time and event time
@kumara2mahe
@kumara2mahe 2 жыл бұрын
This video really saves my day, and all your videos are awesome.
@Codemycom
@Codemycom 2 жыл бұрын
Happy to hear it!
@charlesenglebert8226
@charlesenglebert8226 2 жыл бұрын
hello How to make computed field available in admin ?
@madesastra4145
@madesastra4145 3 жыл бұрын
Great video. So simple and straightforward👍
@Codemycom
@Codemycom 3 жыл бұрын
Glad you liked it!
@1412-kaito
@1412-kaito Жыл бұрын
Okay, so what would the steps be if i want to store some calculated info. in the forms and make i non-editable for non-admins?
@fernandocoelho1334
@fernandocoelho1334 2 ай бұрын
Thanks so much!
@Codemycom
@Codemycom 2 ай бұрын
welcome
@MrElectrecity
@MrElectrecity 3 жыл бұрын
Quick tip 😁 You can use date template tag to print only the date Thanks for your works sharing 💖💖💖💖
@Codemycom
@Codemycom 3 жыл бұрын
Welcome :-)
@OasisFinder
@OasisFinder 2 жыл бұрын
How?
@TheGodfather360
@TheGodfather360 2 жыл бұрын
Hi, I have two models and the names are Budget and Transaction. One budget can have multiple transactions, I would like to sum each transaction and subtract the total from the particular budget. I used the @property decorator, but how include this calculation from different models. Thanks in advance!
@pouoiza6875
@pouoiza6875 2 жыл бұрын
Thank you so must Sir
@Codemycom
@Codemycom 2 жыл бұрын
Very Welcome!
@Kennerdoll
@Kennerdoll 2 жыл бұрын
Hello John, is it a good practice to just add: if self.event_date.date() > today: return days_till_split else: return "Event passed! at 8:18?
@Codemycom
@Codemycom 2 жыл бұрын
It's a good practice to do anything you want to do :-p
@MatthewCoxPublicProfile
@MatthewCoxPublicProfile 2 жыл бұрын
Hey John- perhaps I haven't dived deep enough, but do you have a video on paginating the returned searches?
@Codemycom
@Codemycom 2 жыл бұрын
I have a video on pagination
@Adrian-mh8op
@Adrian-mh8op 3 жыл бұрын
I have a few questions. I’m making a flashcard project, I followed your tutorial for the language one but to take it further I want to use SQLite to store the words. I’ve already created my table how do I call the contents for it to be displayed on the GUI of the flashcard. Also I have a menu but when I click between the menu the contents of it gradually go further and further down. How do I make it stay stationary when I switch between the menu items
@Codemycom
@Codemycom 3 жыл бұрын
Are you talking about tkinter? I have videos on all that stuff.
@pouoiza6875
@pouoiza6875 2 жыл бұрын
Thank you so much sir.😷
@Codemycom
@Codemycom 2 жыл бұрын
Very welcome
@mohammedhassan-kx2yf
@mohammedhassan-kx2yf 3 жыл бұрын
I need help I have a django db model which has a manytomany field. Problem i have is adding values to that field from my views.py I used obj.field.add(“”) Obj.field.set(“) Nothing is working
@Codemycom
@Codemycom 3 жыл бұрын
I have many videos about adding things to the database.
@Clussy123
@Clussy123 3 жыл бұрын
I think it should be obj.feild.addWidget(")
@nadirnacef2223
@nadirnacef2223 2 жыл бұрын
I like this guy he looks like Walter white from the breaking bad serie
@Codemycom
@Codemycom 2 жыл бұрын
Haha Thanks
@yasayah7289
@yasayah7289 3 жыл бұрын
Merveilleux merci! Would be nice to add email notifications via dropdown email list as an event approaches a certain number of days. Additionally a dashboard with total number of events as well as breakdown number of events of event type...j'apprécie ton tuto merci :)
@Codemycom
@Codemycom 3 жыл бұрын
noted :-p
@Adrian-mh8op
@Adrian-mh8op 3 жыл бұрын
Whenever I click my menu item, my label along with what’s on the GUI gradually keep going down with every click of it. How do you fix that, if you could link the video to that, it would be great. You’re amazing btw, I learn from your videos all the time
@Codemycom
@Codemycom 3 жыл бұрын
Sorry, I have no idea what you're talking about. This is a django video, there are no menu items or gui's
@frozeneye100
@frozeneye100 Жыл бұрын
pretty cool, except doing exactly that, no access to the property... No idea what causes that issue.
@Codemycom
@Codemycom Жыл бұрын
what did you do differently?
@frozeneye100
@frozeneye100 Жыл бұрын
@@Codemycom I found the issue. I was trying to call the property which returned an object. For testing I placed it in a for loop which did not create any instances of the class. So since there was no instance of the class, of course the object was just an object without an instance for the way in which it was called. Moving it to a loop which did create a class instance worked. So I need to learn a bit more about that and OOP and django.
@mohammadrajha5181
@mohammadrajha5181 3 жыл бұрын
can i get money from my website? if i do a good web
@Codemycom
@Codemycom 3 жыл бұрын
Sure, it depends on the website and it's purpose
@kmdown
@kmdown 3 жыл бұрын
Please Make a video on how to host django site free to show our friends...
@Clussy123
@Clussy123 3 жыл бұрын
kzbin.info/www/bejne/gpqTcpWwYrCHbZo it works the same with Django, I think
@kmdown
@kmdown 3 жыл бұрын
Ohh, Thanks a lot
@Codemycom
@Codemycom 3 жыл бұрын
Yeah I have those already on the channel.
@mohammadrajha5181
@mohammadrajha5181 3 жыл бұрын
i wanna free domain pls how
@Codemycom
@Codemycom 3 жыл бұрын
No, domains cost money from a registrar.
Remove Groups From Admin Site - Django Wednesdays #41
4:51
Codemy.com
Рет қаралды 5 М.
Use Different Forms For Different Users - Django Wednesdays #30
13:34
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Django Aggregation
19:13
Very Academy
Рет қаралды 18 М.
Pagination For Django - Django Wednesdays #18
18:53
Codemy.com
Рет қаралды 43 М.
🚨🚨 State Of JavaScript 2024 🚨🚨
ThePrimeTime
Рет қаралды 1,7 М.
How To Add Database Forms To A Web Page - Django Wednesdays #7
28:24
Update and Edit Venues - Django Wednesdays #10
16:09
Codemy.com
Рет қаралды 38 М.
How To Modify The Django Admin Area - Django Wednesdays #6
21:01
Create A Search Bar - Django Wednesdays #9
17:04
Codemy.com
Рет қаралды 99 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН