Http404
and PermissionDenied
exceptions. Misago defines its own two exceptions that act as "messages" for it's own error handler that link user followed to reach view is not up-to-date and could use 301 redirect to make sure bookmarks and crawlers get current link.misago.core.exceptions.Banned
Ban
or BanCache
instance as its only argument will cause Misago to display "You are banned" error page to the user.misago.core.exceptions.ExplicitFirstPage
misago.core.shortcuts.paginate
helper function that creates pagination for given data, page number and configuration. If first page is explicit (user-blog/1/
) instead implicit (user-blog/
), this exception is raised for error handler to return redirect to link with implicit first page.None
as page number to misago.core.shortcuts.paginate
when no page was passed through link.misago.core.exceptions.OutdatedSlug
misago.core.shortcuts.validate_slug
helper function that compares link's "slug" part against one from database. If check fails OutdatedSlug exception is raised with parameter name and valid slug as message that Misago's exception handler then uses to construct redirection response to valid link.misago.core.exceptionhandler
exception handler