Skip to content

Instantly share code, notes, and snippets.

View notanumber's full-sized avatar

David Sauve notanumber

  • Sauve Software Solutions
  • Victoria, BC
View GitHub Profile
diff --git a/docs/backend_support.rst b/docs/backend_support.rst
index 3b6f384..a93f949 100644
--- a/docs/backend_support.rst
+++ b/docs/backend_support.rst
@@ -10,9 +10,11 @@ Supported Backends
* Solr_
* Whoosh_
+* Xapian_
diff --git a/haystack/backends/simple_backend.py b/haystack/backends/simple_backend.py
index d08501b..f8a481c 100644
--- a/haystack/backends/simple_backend.py
+++ b/haystack/backends/simple_backend.py
@@ -21,7 +21,7 @@ if settings.DEBUG:
ch.setLevel(logging.WARNING)
ch.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s'))
- logger = logging.getLogger('haystack.dummy_backend')
+ logger = logging.getLogger('haystack.simple_backend')
Index: haystack/views.py
===================================================================
--- haystack/views.py (revision 3558)
+++ haystack/views.py (working copy)
@@ -113,6 +113,9 @@
}
context.update(self.extra_context())
+ if settings.HAYSTACK_INCLUDE_SPELLING:
+ context['spelling_suggestion'] = self.form.search().spelling_suggestion()
from fabric.api import abort, hide, lcd, local, settings
from fabric.contrib.console import confirm
from fabric.contrib import django
django.project('foo')
def check_repository():
"""
@notanumber
notanumber / gist:3350538
Created August 14, 2012 16:08
Simple Quad
#ifndef TEMPLATEGAME_H_
#define TEMPLATEGAME_H_
#include "gameplay.h"
using namespace gameplay;
class TestApp : public Game
{
public:
@notanumber
notanumber / gist:3353668
Created August 14, 2012 22:47
Simple Triangle
#ifndef TEMPLATEGAME_H_
#define TEMPLATEGAME_H_
#include "gameplay.h"
using namespace gameplay;
class TestApp : public Game
{
public:

Keybase proof

I hereby claim:

  • I am notanumber on github.
  • I am notanumber (https://keybase.io/notanumber) on keybase.
  • I have a public key whose fingerprint is 92CB C4F6 B643 5BCE 58B5 D2CA 5F71 4D23 AAE3 C4E6

To claim this, I am signing this object: