Only import django related functions on django tests as it might not be installed in current environment
Only import django related functions on django tests as it might not be installed in current environment

ticketea/pynesis