Pronoy Chopra A Pythonic life

ORM

Django ORM Lessons: Optimizing SQL

I recently had the pleasure on working on a project that required SQL optimization. The data being pulled from the DB was taking quite a bit of time. The code...

F() objects and Model Managers in Django

So, I discovered something new. Even though class methods are accessible in the instance of the class, there are a few things that are different in Django. Turns out model...