exceptions.py 414 B

12345678910111213141516
  1. from django.core.exceptions import PermissionDenied as DjPermissionDenied
  2. from django.http import Http404 as DjHttp404
  3. class PermissionDenied(DjPermissionDenied):
  4. """The user did not have permission to do that"""
  5. pass
  6. class Http404(DjHttp404):
  7. """The requested page could not be found"""
  8. pass
  9. class OutdatedUrl(Exception):
  10. """The url that was used to reach view contained outdated slug"""