1 from django.core.exceptions import ImproperlyConfigured
4 MIDDLEWARE_NOT_CONFIGURED = ImproperlyConfigured("""Philo requires the RequestNode middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'philo.middleware.RequestNodeMiddleware'.""")
7 class ViewDoesNotProvideSubpaths(Exception):
8 """ Raised by View.reverse when the View does not provide subpaths (the default). """
9 silent_variable_failure = True
12 class ViewCanNotProvideSubpath(Exception):
13 """ Raised by View.reverse when the View can not provide a subpath for the supplied arguments. """
14 silent_variable_failure = True
17 class AncestorDoesNotExist(Exception):
18 """ Raised by get_path if the root model is not an ancestor of the current model """