Using pgpool2 to timeout idle Postgres connections from Django
Django has a well known issue with "<IDLE> in transaction" queries piling up. I have found that simply "<IDLE>" queries also have a tendency to ...
Django has a well known issue with "<IDLE> in transaction" queries piling up. I have found that simply "<IDLE>" queries also have a tendency to ...
Varnish is an HTTP accelerator designed for content-heavy dynamic web sites. In contrast to other HTTP accelerators, such as Squid, which began life as a cl...
Haystack is a great indexed search framework for Django. Getting started is easy, and it includes many data types and facets out of the box. However, one da...
Celery 2.3 has a few high level knobs to turn with regards to exception emails. You can whitelist exceptions by type. You can change the recipients, email s...
On pages that contain filter controls, such as search results pages, it's common for the filter selections to be put into the URL using query parameters. Th...
In my Django applications, I tend to use custom middleware extensively for common tasks. I have middleware that logs page runtime, middleware that sets cont...
If you do frequent branch merges in any source control system, you have likely encountered merge conflicts. When two branches have legitimate differences, m...
Celery has a built-in mechanism for sending untrapped errors to admins via email. This is great for trouble-shooting. Sending the emails directly to develop...
Many websites have branding or "white label" functionality where the site can have custom styles per customer. A common use case with commercial products is...
Many times color palettes have lighter and darker variations of the same color. This may be used to convey relative importance, or for something as simple a...