Better handling of previous django versions.