Fix tests without Django being installed

Properly skip all tests when Django isn't available.