Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
Patch TIMEOUT to be override-able by a setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Babu committed Jun 7, 2012
1 parent e29a35c commit 0e4437f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions urls.py
Expand Up @@ -4,8 +4,11 @@
from django.shortcuts import redirect

import jingo
import sphinxapi
from django_arecibo.tasks import post as arecibo_post

sphinxapi.TIMEOUT = getattr(settings, 'SPHINX_TIMEOUT', 1)


def _error_page(request, status):
"""Render error pages with jinja2."""
Expand All @@ -15,6 +18,7 @@ def _error_page(request, status):
handler404 = lambda r: _error_page(r, 404)
handler_csrf = lambda r, reason: jingo.render(r, 'csrf_error.html')


def handler500(request):
arecibo = getattr(settings, 'ARECIBO_SERVER_URL', '')

Expand Down

0 comments on commit 0e4437f

Please sign in to comment.