diff options
author | holyantony | 2015-07-21 21:46:19 +0530 |
---|---|---|
committer | holyantony | 2015-07-21 21:46:19 +0530 |
commit | 74ea395747225ba2631c53ad7b29ddf2e91b5873 (patch) | |
tree | 13aef01a404d0afccdd37684b8854e8ce6a29116 /forums | |
parent | 4a96b70ec8c492b5e94e8f9593616c6943be459f (diff) | |
download | FOSSEE-Forum-74ea395747225ba2631c53ad7b29ddf2e91b5873.tar.gz FOSSEE-Forum-74ea395747225ba2631c53ad7b29ddf2e91b5873.tar.bz2 FOSSEE-Forum-74ea395747225ba2631c53ad7b29ddf2e91b5873.zip |
Subject:Google Custom Search
Description:
1. Added key for custom search
2. Added script from google to index.html
Diffstat (limited to 'forums')
-rw-r--r-- | forums/settings.py | 12 | ||||
-rw-r--r-- | forums/urls.py | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/forums/settings.py b/forums/settings.py index 6fc18f0..72a6891 100644 --- a/forums/settings.py +++ b/forums/settings.py @@ -1,6 +1,7 @@ #Custom settings from os.path import * from config import * +import os from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS PROJECT_DIR = abspath(dirname(__file__) + '/../') @@ -144,6 +145,7 @@ INSTALLED_APPS = ( 'captcha', 'south' + #'migrate_spoken', ) @@ -182,6 +184,16 @@ TEMPLATE_CONTEXT_PROCESSORS += ( ) + +WHOOSH_INDEX = os.path.join(PROJECT_DIR,'whoosh/') + +HAYSTACK_CONNECTIONS = { + 'default':{ + 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', + 'PATH' : WHOOSH_INDEX, + }, +} + COMPRESS_ROOT = PROJECT_DIR + "/static/" COMPRESS_ENABLED = True # disable in production Env HTML_MINIFY = True # disable in production Env diff --git a/forums/urls.py b/forums/urls.py index 13ea5be..0924a64 100644 --- a/forums/urls.py +++ b/forums/urls.py @@ -24,5 +24,6 @@ urlpatterns = patterns('', url(r"^accounts/profile/(?P<username>[\w. @-]+)/$", 'forums.views.account_profile', name='profile'), url(r"^accounts/view-profile/(?P<username>[\w. @-]+)/$", 'forums.views.account_view_profile', name='view_profile'), + ) |