Move django import inside runtests function.