diff options
author | Adolfo Fitoria <adolfo.fitoria@gmail.com> | 2012-06-20 16:55:05 -0600 |
---|---|---|
committer | Adolfo Fitoria <adolfo.fitoria@gmail.com> | 2012-06-20 16:55:05 -0600 |
commit | 3c9079c6255dbc83bd205e5f0147d330ee0f97e0 (patch) | |
tree | c8a5026263b90e924955eb3f92593cf12b859896 /askbot/setup_templates | |
parent | 4460f4c19d49b51e1d23834625972955681805da (diff) | |
download | askbot-3c9079c6255dbc83bd205e5f0147d330ee0f97e0.tar.gz askbot-3c9079c6255dbc83bd205e5f0147d330ee0f97e0.tar.bz2 askbot-3c9079c6255dbc83bd205e5f0147d330ee0f97e0.zip |
added setup_procedures for haystack and setup_templates
Diffstat (limited to 'askbot/setup_templates')
-rw-r--r-- | askbot/setup_templates/settings.py | 8 | ||||
-rw-r--r-- | askbot/setup_templates/settings.py.mustache | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/askbot/setup_templates/settings.py b/askbot/setup_templates/settings.py index 32af9920..d0a34d55 100644 --- a/askbot/setup_templates/settings.py +++ b/askbot/setup_templates/settings.py @@ -161,6 +161,7 @@ INSTALLED_APPS = ( 'django.contrib.humanize', 'django.contrib.sitemaps', #'debug_toolbar', + #'haystack', 'askbot', 'askbot.deps.django_authopenid', #'askbot.importers.stackexchange', #se loader @@ -229,3 +230,10 @@ CSRF_COOKIE_NAME = 'askbot_csrf' STATICFILES_DIRS = ( os.path.join(ASKBOT_ROOT, 'skins'),) RECAPTCHA_USE_SSL = True + +#HAYSTACK_SETTINGS +ENABLE_HAYSTACK_SEARCH = False +HAYSTACK_SITECONF = 'askbot.search.haystack' +#more information +#http://django-haystack.readthedocs.org/en/v1.2.7/settings.html +HAYSTACK_SEARCH_ENGINE = 'simple' diff --git a/askbot/setup_templates/settings.py.mustache b/askbot/setup_templates/settings.py.mustache index eb1cb1c1..07e6aef0 100644 --- a/askbot/setup_templates/settings.py.mustache +++ b/askbot/setup_templates/settings.py.mustache @@ -160,6 +160,8 @@ INSTALLED_APPS = ( 'django.contrib.humanize', 'django.contrib.sitemaps', #'debug_toolbar', + #Optional, to enable haystack search + #'haystack', 'askbot', 'askbot.deps.django_authopenid', #'askbot.importers.stackexchange', #se loader @@ -230,3 +232,10 @@ STATIC_ROOT = os.path.join(PROJECT_ROOT, "static") STATICFILES_DIRS = (os.path.join(ASKBOT_ROOT, 'skins'),) RECAPTCHA_USE_SSL = True + +#HAYSTACK_SETTINGS +ENABLE_HAYSTACK_SEARCH = False +HAYSTACK_SITECONF = 'askbot.search.haystack' +#more information +#http://django-haystack.readthedocs.org/en/v1.2.7/settings.html +HAYSTACK_SEARCH_ENGINE = 'simple' |