35% response time improvement from switching to uWSGI/nginx

As part of refreshing the Reveal IT website, I have moved it from mod_wsgi running on Apache HTTPD to uWSGI running on nginx, mainly because my previous setup had both Django and Drupal sites running on the same Apache server.

Due to some of the shortcomings of PHP, the only recommended way to run mod_php on Apache is via the prefork MPM, which carries a high memory usage penalty per process. My Apache processes hover around 100MB…

Anonymous (not verified) Fri, 2010-10-22 - 12:11

Protecting your users from phishing with Apache rules and HSTS

Published on Thu, 2010-09-09 - 22:27

HTTP Strict Transport Security or HSTS is a new security feature in browsers that enables you tell the browser “always use SSL when accessing this site”.

Mozilla has a good blog post explaining HSTS, so I won’t try to replicate that here, but I’d just like to make it clear that if you have a site that should always use SSL, be it Drupal or Django or any other system, this is definitely something you should get…


Presenting Django Password Required

Published on Mon, 2010-06-07 - 13:17

Have you ever wanted to password-protect your Django-site, without requiring user registration, do you find HTTP Basic Auth to be a very blunt instrument for protecting sites or do you want to do StackOverflow style beta-testing?

Then Django Password Required is for you. It provides a simple @password_required decorator for your views, and lets you configure a password in your file. The authentication is stored in the user’s session data, using Django’s own session system. This means that…


New blog, same as the old one...

Published on Thu, 2009-10-15 - 10:03

So, I finally did it. I've long wanted to do something about this blog, to try and push a better design on it and generally trim everything.

I wanted to try something new and challenging, so now I've rebuilt my blog with Django Mingus.

Building stuff with Django tends to be a lot of fun. I have quite a few ideas that I'd like to try out, so you may see some of my work moving into Mingus.

Book Meme

"Variables in JavaScript are fundamentally the same as object properties"
From "JavaScript – The Definitive Guide, 5th edition"

A meme from James Tauber, Greg Newman, Justin Lilly, Brian Rosner and Eric Florenzano.


  • Grab the nearest book.
  • Open it to page 56.
  • Find the fifth sentence.
  • Post the text of the sentence in your journal along with these instructions.
  • Don't dig for your favorite book, the cool book, or the intellectual one: pick the CLOSEST.
  • No cheating :)
Anonymous (not verified) Thu, 2008-11-13 - 10:25
Subscribe to Django