attempting a more elegant solution to detecting django version