Talk Python To Me cover image

#277: 10 tips every Django developer should know

Talk Python To Me

00:00

Is That a Shortcut?

There are so many things I can highlight a few. For example, when you get an object, you can also just manually catch the does not exist exception. This one is get or get underscore or underscore create, which if the object is in the database, it retrieves it. And if not, it creates it and returns a tuple of the object and then a Boolean created. It's like a proactive, absurd update or insert, but the other way. So that's clearly like a shortcut. Then with the Korean, for example, if you're filtering, you can use under double underscore to,. for example, you have a field and then you can do underscore and the score contains

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app