Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Patch TIMEOUT to be override-able by a setting #47

Merged
merged 1 commit into from

3 participants

@nigelbabu

No description provided.

@jsocol

I'm having a hard time running the tests because it's trying to create django_site in the test_website_issues database--or rather, it's not creating it, then complaining it doesn't exist. Am I missing some sort of updated DB router?

@nigelbabu

Ugh, I never could get the tests working on my linux computer. Let me try on this one.

@stephendonner

Any update?

@nigelbabu

Nothing yet. I want to take a shot at this today evening.

@jsocol jsocol merged commit 42863e4 into from
@jsocol

If we weren't about to burn this project to the ground and start over like Wayne Manor in The Dark Knight, I would complain about the monkey patching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 7, 2012
  1. Patch TIMEOUT to be override-able by a setting

    Nigel Babu authored
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 urls.py
View
4 urls.py
@@ -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."""
@@ -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', '')
Something went wrong with that request. Please try again.