Why not use an ImproperlyConfigured and tell the programmer what to do. Like in views: https://github.com/OpenSlides/OpenSlides/blob/master/openslides/utils/views.py#L148