) INSTALLED_APPS = [ 'django.contrib.staticfiles', 'rest_framework', 'rest_framework_swagger', 'corsheaders', 'haystack', 'notesapi.v1', ] STATIC_URL = '/static/' WSGI_APPLICATION = 'notesserver.wsgi.application' LOGGING = get_logger_config() REST_FRAMEWORK = { 'DEFAULT_PERMISSION_CLASSES': [ 'notesapi.v1.permissions.HasAccessToken' ] } CORS_ORIGIN_ALLOW_ALL = True CORS_ALLOW_HEADERS = ( 'x-requested-with', 'content-type', 'accept', 'origin', 'authorization', 'x-csrftoken',
from .common import * from notesserver.settings.logger import get_logger_config DEBUG = True ALLOWED_HOSTS = ['*'] LOGGING = get_logger_config(debug=DEBUG, dev_env=True, local_loglevel='DEBUG') del LOGGING['handlers']['local'] # These values are derived from provision-ida-user.sh in the edx/devstack repo. CLIENT_ID = 'edx_notes_api-key' CLIENT_SECRET = 'edx_notes_api-secret' ES_INDEXES = {'default': 'notes_index'} HAYSTACK_CONNECTIONS['default']['URL'] = 'http://edx.devstack.elasticsearch:9200/' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': os.environ.get('DB_NAME', 'notes'), 'USER': os.environ.get('DB_USER', 'notes001'), 'PASSWORD': os.environ.get('DB_PASSWORD', 'password'), 'HOST': os.environ.get('DB_HOST', 'edx.devstack.mysql'), 'PORT': os.environ.get('DB_PORT', 3306), 'CONN_MAX_AGE': 60, } } JWT_AUTH = {}
'django.contrib.contenttypes', 'django.contrib.staticfiles', 'rest_framework', 'rest_framework_swagger', 'corsheaders', 'haystack', 'notesapi.v1', # additional release utilities to ease automation 'release_util', ] STATIC_URL = '/static/' WSGI_APPLICATION = 'notesserver.wsgi.application' LOGGING = get_logger_config() REST_FRAMEWORK = { 'DEFAULT_PERMISSION_CLASSES': ['notesapi.v1.permissions.HasAccessToken'], 'DEFAULT_PAGINATION_CLASS': 'notesapi.v1.paginators.NotesPaginator', } CORS_ORIGIN_ALLOW_ALL = True CORS_ALLOW_HEADERS = ( 'x-requested-with', 'content-type', 'accept', 'origin', 'authorization', 'x-csrftoken', 'x-annotator-auth-token',
from .common import * from notesserver.settings.logger import get_logger_config DEBUG = True ALLOWED_HOSTS = ['*'] LOGGING = get_logger_config(debug=DEBUG, dev_env=True, local_loglevel='DEBUG') del LOGGING['handlers']['local'] # These values are derived from provision-ida-user.sh in the edx/devstack repo. CLIENT_ID = 'edx_notes_api-key' CLIENT_SECRET = 'edx_notes_api-secret' ES_INDEXES = {'default': 'notes_index'} HAYSTACK_CONNECTIONS['default']['URL'] = 'http://edux-elasticsearch:9200/' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': os.environ.get('DB_NAME', 'notes'), 'USER': os.environ.get('DB_USER', 'notes001'), 'PASSWORD': os.environ.get('DB_PASSWORD', 'password'), 'HOST': os.environ.get('DB_HOST', 'edux-mysql'), 'PORT': os.environ.get('DB_PORT', 3306), 'CONN_MAX_AGE': 60, } } JWT_AUTH = {}