src/iconolab_mcc/settings/dev.py.tmpl
changeset 2 48b9b57dfbaa
parent 1 309def3c05dc
child 3 12fb6a535aa6
equal deleted inserted replaced
1:309def3c05dc 2:48b9b57dfbaa
   169             'propagate': True,
   169             'propagate': True,
   170         },
   170         },
   171     }
   171     }
   172 }
   172 }
   173 
   173 
   174 # Haystack configuration
   174 ELASTICSEARCH_DSL={
   175 
       
   176 # Haystack only supports ElasticSearch 1.x
       
   177 # http://django-haystack.readthedocs.io/en/v2.5.1/installing_search_engines.html#elasticsearch
       
   178 
       
   179 HAYSTACK_CONNECTIONS = {
       
   180     'default': {
   175     'default': {
   181         'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
   176         'hosts': 'localhost:9200'
   182         'URL': 'http://127.0.0.1:9200/',
   177     },
   183         'INDEX_NAME': 'haystack',
   178 }
   184     },
       
   185 }
       
   186 
       
   187 # HAYSTACK_SIGNAL_PROCESSOR = 'iconolab.search_indexes.signals.RevisionSignalProcessor'
       
   188 
   179 
   189 CACHES = {
   180 CACHES = {
   190     'default': {
   181     'default': {
   191         'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
   182         'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
   192         'LOCATION': os.path.join(MEDIA_ROOT, 'cache'),
   183         'LOCATION': os.path.join(MEDIA_ROOT, 'cache'),