Commit 5b5c792d by Dennis Jen

Merge pull request #86 from edx/dsjen/es-config

Added settings for elasticsearch.
parents 47027f71 0f43ca69
"""Common settings and globals.""" """Common settings and globals."""
from os import environ
from os.path import abspath, basename, dirname, join, normpath from os.path import abspath, basename, dirname, join, normpath
from sys import stderr from sys import stderr
...@@ -50,6 +51,11 @@ DATABASES = { ...@@ -50,6 +51,11 @@ DATABASES = {
} }
########## END DATABASE CONFIGURATION ########## END DATABASE CONFIGURATION
########## ELASTICSEARCH CONFIGURATION
ELASTICSEARCH_LEARNERS_HOST = environ.get('ELASTICSEARCH_LEARNERS_HOST', None)
ELASTICSEARCH_LEARNERS_INDEX = environ.get('ELASTICSEARCH_LEARNERS_INDEX', None)
########## END ELASTICSEARCH CONFIGURATION
########## GENERAL CONFIGURATION ########## GENERAL CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#time-zone # See: https://docs.djangoproject.com/en/dev/ref/settings/#time-zone
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment