1 from django.http import HttpResponse
2 from django.template.loader import render_to_string
4 from forum import settings
6 class HttpResponseServiceUnavailable(HttpResponse):
7 def __init__(self, message):
8 super(HttpResponseServiceUnavailable, self).__init__(content=render_to_string('503.html', {
10 'app_logo': settings.APP_LOGO,
11 'app_title': settings.APP_TITLE
14 class HttpResponseUnauthorized(HttpResponse):