2 min read Well, I am writing this note to be reminded later or to remind you who do this stupid mistake like i did. I have a project where i have written a command called init_data to initialize the required data in the system. I needed to create thousands of django user instances, thousands of other model instances.
So i was not concerned of how django orm will handle these instance creation in a loop until i suffered for it.
< 1 min read Few days back I was given to implement a logging system that will send all critical error message in the system to admin emails. And i was given only 2 hours. I have written a middle ware for that purpose.