from .devstack import *

FEATURES['APPSEMBLER_SECRET_KEY'] = "secret_key"
# the following ip should work for all dev setups....
FEATURES['APPSEMBLER_AMC_API_BASE'] = 'http://10.0.2.2:8080/api'
FEATURES['APPSEMBLER_FIRST_LOGIN_API'] = '/logged_into_edx'
FEATURES["ENABLE_SYSADMIN_DASHBOARD"] = True
FEATURES["ENABLE_COURSE_DISCOVERY"] = False
FEATURES["SHOW_ONLY_APPSEMBLER_AND_OWNED_COURSES"] = True
OAUTH_ENFORCE_SECURE = False

# disable caching in dev environment
#CACHES['general']['BACKEND'] = 'django.core.cache.backends.dummy.DummyCache'
#CACHES['default']['BACKEND'] = 'django.core.cache.backends.dummy.DummyCache'


INSTALLED_APPS += ('appsembler_lms',)

from .devstack import *

FEATURES['APPSEMBLER_SECRET_KEY'] = "secret_key"
# the following ip should work for all dev setups....
FEATURES['APPSEMBLER_AMC_API_BASE'] = 'http://10.0.2.2:8080/api'
FEATURES['APPSEMBLER_FIRST_LOGIN_API'] = '/logged_into_edx'
FEATURES["ENABLE_SYSADMIN_DASHBOARD"] = True

# needed to show only users and appsembler courses
FEATURES["ENABLE_COURSE_DISCOVERY"] = False
FEATURES["SHOW_ONLY_APPSEMBLER_AND_OWNED_COURSES"] = True
OAUTH_ENFORCE_SECURE = False

# disable caching in dev environment
#CACHES['general']['BACKEND'] = 'django.core.cache.backends.dummy.DummyCache'
#CACHES['default']['BACKEND'] = 'django.core.cache.backends.dummy.DummyCache'


INSTALLED_APPS += ('appsembler_lms',)

add comment for course discovery