Moved django import

Moved django import to withing django_dispatch function