For many years, we’ve been running an ELK (Elasticsearch, Logstash, Kibana) stack for centralized logging. We have a specific project that requires on-premise infrastructure, so sending logs off-site to a hosted solution was not an option.
A fun trick to generate random, but seeded, IPv4 addresses in a Django app.
The Django documentation recommends always starting your project with a custom user model (even if it’s identical to Django’s to begin with), to make it easier to customize later if you need to.
`SELECT COUNT(*) FROM (SELECT DISTINCT my_not_unique_indexed_column FROM my_table) t`
In this post, I review some reasons why it’s really difficult to program correctly when using times, dates, time zones, and daylight saving time, and then I’ll give some advice for working with them in Python and Django.
New clients regularly ask us if we build WordPress sites. When we dig deeper, we generally learn that they’re looking for a user-friendly content management system (CMS) that will allow them to effortlessly publish and curate their site content.
I’m slightly late on this one, but here it is. For the record, main purposes of this mirror are: being a lightweight read-only repository to clone from for production servers hide the ugly git stuff behind a great mercurial interface The clone is at the usual location at bitbucket, from which you can browse, clone, […]
If you use the `django.views.decorators.cache.cache_control` decorator, consider this one instead to change the `max_age` depending on the request.