Remove redundant checks for database path and django versions.