Updated the way django.setup is called to pass test.