Only use django.setup() for Django >= 1.7.