This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef TEMPLATEGAME_H_ | |
#define TEMPLATEGAME_H_ | |
#include "gameplay.h" | |
using namespace gameplay; | |
class TestApp : public Game | |
{ | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef TEMPLATEGAME_H_ | |
#define TEMPLATEGAME_H_ | |
#include "gameplay.h" | |
using namespace gameplay; | |
class TestApp : public Game | |
{ | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(): | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
results = sorted(results, key=lambda x:(x.model_name=='foo'), reverse=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WSGIScriptAlias / /home/mysiteteam/hosting/live.wsgi | |
WSGIDaemonProcess live user=mysiteteam group=mysiteteam-www-editors threads=1 processes=45 | |
WSGIProcessGroup live | |
WSGIApplicationGroup %{GLOBAL} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For Haystack 1.0 or lower | |
*/15 * * * * cd /path/to/my/site/ && DJANGO_SETTINGS_MODULE=site.settings PYTHONPATH=.:..:../lib python ./manage.py reindex --age=1 > ../../log/search_indexes.log | |
# For Haystack 1.1 or higher | |
*/15 * * * * cd /path/to/my/site/ && DJANGO_SETTINGS_MODULE=site.settings PYTHONPATH=.:..:../lib python ./manage.py update_index --age=1 > ../../log/search_indexes.log |
NewerOlder