Actually django ImproperlyConfigured might be better