Update Django version check to support new versioning standard

Review Request #640 — Created Nov. 17, 2008 and submitted — Latest diff uploaded

Review Board SVN (deprecated)
Django have now standardised on the format of the django.VERSION tuple (a change that they just missed for 1.0):

As of 1.0.1, VERSION will always be a 5-tuple of the form (major, minor, micro, release-level, serial).

So 1.0.1 is (1, 0, 1, 'final', 0), and SVN trunk is (1, 1, 0, 'alpha', 0).

This patch fixes the version checking to allow for Django 1.0.1 and above, while still explicitly checking for 1.0 final using its old format.
Was tested by manually overriding django.VERSION just before the version check was performed.

This gave the expected results, i.e. fail for 1.0 beta, and pass for 1.0 final, 1.0.1 final, 1.1 alpha.