X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/9b40768160da75802636fc2b45c1f68bd36fd7bd..8aad28a2a098d4f6c0401070e28081c55d8d1e6e:/exceptions.py?ds=inline diff --git a/exceptions.py b/exceptions.py index 4759bae..f53083d 100644 --- a/exceptions.py +++ b/exceptions.py @@ -1,10 +1,16 @@ +from django.core.exceptions import ImproperlyConfigured + + +MIDDLEWARE_NOT_CONFIGURED = ImproperlyConfigured("""Philo requires the RequestNode middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'philo.middleware.RequestNodeMiddleware'.""") + + class ViewDoesNotProvideSubpaths(Exception): - """ Raised by get_subpath when the View does not provide subpaths (the default). """ + """ Raised by View.reverse when the View does not provide subpaths (the default). """ silent_variable_failure = True class ViewCanNotProvideSubpath(Exception): - """ Raised by get_subpath when the View can not provide a subpath for the supplied object. """ + """ Raised by View.reverse when the View can not provide a subpath for the supplied arguments. """ silent_variable_failure = True