Skip to content

Instantly share code, notes, and snippets.

David Sauve notanumber

Block or report user

Report or block notanumber

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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:

View gist:3353668
#ifndef TEMPLATEGAME_H_
#define TEMPLATEGAME_H_
#include "gameplay.h"
using namespace gameplay;
class TestApp : public Game
{
public:
View gist:3350538
#ifndef TEMPLATEGAME_H_
#define TEMPLATEGAME_H_
#include "gameplay.h"
using namespace gameplay;
class TestApp : public Game
{
public:
View fabfile.py
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():
"""
View spelling_suggestion_in_default_view.diff
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()
View gist:377091
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')
View Xapian documentation updates for Haystack
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_
View Force 'foo' models to top of search results
results = sorted(results, key=lambda x:(x.model_name=='foo'), reverse=True)
View vhost.conf sample
WSGIScriptAlias / /home/mysiteteam/hosting/live.wsgi
WSGIDaemonProcess live user=mysiteteam group=mysiteteam-www-editors threads=1 processes=45
WSGIProcessGroup live
WSGIApplicationGroup %{GLOBAL}
View gist:226348
diff --git a/haystack/indexes.py b/haystack/indexes.py
index 0fc5cd9..441d16d 100644
--- a/haystack/indexes.py
+++ b/haystack/indexes.py
@@ -62,18 +62,6 @@ class SearchIndex(object):
if not len(content_fields) == 1:
raise SearchFieldError("An index must have one (and only one) SearchField with document=True.")
- def _setup_save(self, model):
- signals.post_save.connect(self.update_object, sender=model)
You can’t perform that action at this time.