app/django/core/signals.py
author Sverre Rabbelier <sverre@rabbelier.nl>
Thu, 04 Jun 2009 22:26:24 +0200
changeset 2392 b53e1cdb0398
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Make the maintenance page a hardcoded response Show the maintenance message on the requested page, instead of redirecting to a specific url which then displays a page with the maintenance notice.

from django.dispatch import Signal

request_started = Signal()
request_finished = Signal()
got_request_exception = Signal(providing_args=["request"])