don't write mtime if python version is less than 2.7, and don't try to override settings if django is less than 1.4