+# If Celery broker not configured, enable always-eager mode.
+try:
+ CELERY_BROKER_URL
+except NameError:
+ CELERY_TASK_ALWAYS_EAGER = True
+
+
+# If SEARCH_INDEX not configured, disable the search.
+try:
+ SOLR
+except NameError:
+ NO_SEARCH_INDEX = True
+else:
+ NO_SEARCH_INDEX = False
+
+