+import forum
+
from forum.settings import MAINTAINANCE_MODE, APP_LOGO, APP_TITLE
from forum.http_responses import HttpResponseServiceUnavailable
+
+
class RequestUtils(object):
def process_request(self, request):
if MAINTAINANCE_MODE.value is not None and isinstance(MAINTAINANCE_MODE.value.get('allow_ips', None), list):
request.META['REQUEST_METHOD'] = "POST"
self.request = request
- return None
\ No newline at end of file
+ forum.REQUEST_HOLDER.request = request
+ return None
+
+ def process_response(selfself, request, response):
+ forum.REQUEST_HOLDER.request = None
+ return response
+