Fix settings for older Django versions.