summaryrefslogtreecommitdiff
path: root/chimere/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/views.py')
-rw-r--r--chimere/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/chimere/views.py b/chimere/views.py
index e6adb3e..88619ce 100644
--- a/chimere/views.py
+++ b/chimere/views.py
@@ -185,7 +185,8 @@ def index(request, area_name=None, default_area=None, simple=False,
'zoomout':zoomout,
'has_default_area':Area.objects.filter(default=True).count(),
'zoomout':zoomout,
- 'has_search':settings.CHIMERE_SEARCH_ENGINE
+ 'has_search':hasattr(settings, 'CHIMERE_SEARCH_ENGINE') and \
+ settings.CHIMERE_SEARCH_ENGINE
})
if hasattr(settings, 'CONTACT_EMAIL') and settings.CONTACT_EMAIL:
response_dct['contact_email'] = settings.CONTACT_EMAIL