useful decorators for Django views
Python implements a light version of aspect oriented programming via decorators. I find myself using them often, specifically for Django views. Here are a f...
Python implements a light version of aspect oriented programming via decorators. I find myself using them often, specifically for Django views. Here are a f...
A program should follow the "Law of Least Astonishment". What is this law? It is simply that the program should always respond to the user in the way that as...
Like Ruby on Rails, Django uses a model API to abstract the database layer. A command-line script creates schema for new object definitions. Unlike Ruby on ...
Sometimes it feels like I'm looking at logs all day. Certainly there are times when this is more true than others. If you find yourself in one of those time...
Idempotence describes the property of operations in mathematics and computer science that means that multiple applications of the operation do not change th...
Django defaults dates in forms to the format "2010-01-15". But changing the default format is fairly straight-forward, though there appears to be some confu...
Say you have a machine using DHCP that you only boot up once in a while. It's headless, so you need to remote into it. How can you find out what IP it has? ...
Unless you have done a lot of work with generating and parsing emails, you are probably not intimately familiar with the details of the MIME format. Here is...
If you follow YSlow rules, then you are likely separating HTTP requests for static resources (images, CSS, javascript) onto a second domain. Maybe you ev...
By default, Django's authentication middleware only allows user names with 30 characters or fewer, containing only letters, digits and underscores. What if ...