You can do that in Django using a middleware. The middleware needs to generate a unique request id (e.g. using UUID) and associate that id with the request.continue reading »
continue reading »
Elasticsearch is an open-source, distributed search and analytics engine based on the Lucene search engine library. It is designed to handle large volumes of data in real-time and provides fast, efficient search and analysis capabilities. Elasticsearch is commonly used for log analysis, full-text search, and business analytics.
Everyone want to keep Django timezone support but sometimes you need to keep your SQL queries a way from timezone conversion especially if by default your application timezone is UTC. Django will do something like this
CONVERT_TZ(`app_incident`.`datetime`, 'UTC', 'UTC')) and it will return
Null if the timezone table is empty. Even that conversion is not even needed.
By default Django has a
date lookup that support timezones. It actually will wrap your field with
CONVERT_TZ in case
True. This is pretty awesome unless you have timezones table empty because this call will return