Using a previous django version isn't exactly an exceptional situation, so rather than handling an exception here you ought to be using getattr.