mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 04:22:14 +01:00 
			
		
		
		
	Use elasticsearch only in production
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -203,9 +203,7 @@ DJANGO_TABLES2_TEMPLATE = 'django_tables2/bootstrap5.html'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
HAYSTACK_CONNECTIONS = {
 | 
					HAYSTACK_CONNECTIONS = {
 | 
				
			||||||
    'default': {
 | 
					    'default': {
 | 
				
			||||||
        'ENGINE': 'haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine',
 | 
					        'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
 | 
				
			||||||
        'URL': 'http://elasticsearch:9200/',
 | 
					 | 
				
			||||||
        'INDEX_NAME': 'haystack',
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -39,3 +39,11 @@ CHANNEL_LAYERS = {
 | 
				
			|||||||
        },
 | 
					        },
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					HAYSTACK_CONNECTIONS = {
 | 
				
			||||||
 | 
					    'default': {
 | 
				
			||||||
 | 
					        'ENGINE': 'haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine',
 | 
				
			||||||
 | 
					        'URL': 'http://elasticsearch:9200/',
 | 
				
			||||||
 | 
					        'INDEX_NAME': 'haystack',
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user