yokomizor
yokomizor

Reputation: 1577

How to catch Django HTTP exceptions?

How catch and render the 404 error view when I raise Http404?

I want to create a similar exception like "WaitingForModeration" and then I would like to see this source code.

Upvotes: 0

Views: 558

Answers (1)

yokomizor
yokomizor

Reputation: 1577

I found myself using grep in django.core.handlers.base.BaseHandler

https://github.com/django/django/blob/0d0ccf81a0c18f42866d914672469f720861988a/django/core/handlers/base.py#L141

Upvotes: 1

Related Questions