]> git.openstreetmap.org Git - osqa.git/blob - forum/http_responses.py
Adds a new function in the profile menu for admins to suspend users, indefinetly...
[osqa.git] / forum / http_responses.py
1 from django.http import HttpResponse
2 from django.template.loader import render_to_string
3
4 from forum import settings
5
6 class HttpResponseServiceUnavailable(HttpResponse):
7     def __init__(self, message):
8         super(HttpResponseServiceUnavailable, self).__init__(content=render_to_string('503.html', {
9         'message': message,
10         'app_logo': settings.APP_LOGO,
11         'app_title': settings.APP_TITLE
12         }), status=503)
13
14 class HttpResponseUnauthorized(HttpResponse):
15     pass