Object Oriented Programming in Python

I present to you the playlist of OOP videos with everything you need to learn about Object Oriented Python programming. Let me know your feedback about this playlist. Contents: Class variable, methods & data member Abstraction Encapsulation/Interface Composition Inheritance/Derivation/Hierarchy MRO Generalization/Specialization Polymorphism Introspection/Reflection Magic Functions Built-in Functions Private/protected attributes. Delegation Metaclasses https://www.youtube.com/playlist?list=PLmIOJy35OTG9Ar0_o1FlVv5OWxc48UTHq

Everything i know about Threads

I am going to cover a huge concept here. How python code executes  Multitasking Process based multitask (Multiprocessing) Thread based multitask (Multi-threading) GIL (Global Interpreter Lock) Green Thread Thread based programming is hard. There are no two ways about it. Every time one thinks he or she understands everything there is to know about how … Continue reading Everything i know about Threads

Map Reduce Filter Python

There are 3 unique functions defined in python to help the dev write some really good code. Mainly Map, Reduce & Filter. I will also discuss about Lambda and some other techniques in the next blogs. MAP It's a very special functions that maps a sequence to a method and create a new sequence. To be specific it takes … Continue reading Map Reduce Filter Python

Customized email with django

I struggled a lot for sending a good customized template in an email from my code. I used many email sending utility and i was able to send emails successfully from my code. But they didn't really look very good. It was just some email with some text in it. So Used one of the … Continue reading Customized email with django

Site Is Down Comeback Later django

If you are developing some web app really good and expecting a good amount of traffic there 24X7 or even if people know that you have own a domain and you are going to release that app soon It's a very bad option to show some page break to user. I will Suggest quickly install … Continue reading Site Is Down Comeback Later django

Backend view for follower/following database logic

Hi Guys I have got a request from @trafffic98 to explain the logic as a follow up of follower/following database logic, written here. so here in this blog i will just put the logic of follow and unfollow button. Follow def follow(request): """ Method is used to follow an user. """ response = {} # … Continue reading Backend view for follower/following database logic

Upgrade django version (1.3 to 1.6 for the current example) Part-1

Hey guys. Hope you doing well. This time i am going to write about upgrading django version. I have been working in a very complecated project which was built in django 1.3. We are in year 2015 n i was working on django 1.3, which was released about 3-4 years back. The framework was almost … Continue reading Upgrade django version (1.3 to 1.6 for the current example) Part-1

Upgrade django version (1.3 to 1.6 for the current example) Part-2

Hey guys. Last time we have started a discussion on upgrading django version. We have discussed the first two steps ie, setting up virtual environment and corrections in manage.py. Our next goal is to replace obsolete libraries in the settings.py file. Corrections in the outdated libraries in the setting.py. This is a very important step. … Continue reading Upgrade django version (1.3 to 1.6 for the current example) Part-2

Follower/Following database logic with django

I have used a lot of social networking sites, including twitter and instagram. Sometimes i wonder how this FOLLOW concept work in these applications. I have done a bit of investigation and finally came up with a way to do that in django. So here it goes .... The idea is We have Auth user in … Continue reading Follower/Following database logic with django