< 1 min read When a page is requested, django build a HttpRequest object containing metadata about the request. Django pass this request to the view it calls for the page request. Generally, you have access to the HttpRequest object from inside the view.
< 1 min read If you are a developer, probably you have heard about sentry. Generally, you can find errors while in development machine by debugging your code. It is equally same important to have a visibility on production errors as solving issues in application. In production, we have a tons of way to log errors.
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.