2019-12-05 11:04:27 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2019-02-07 08:34:54 +00:00
|
|
|
import os
|
2019-02-12 07:26:50 +00:00
|
|
|
from lms.envs.devstack import *
|
2017-12-26 00:16:35 +00:00
|
|
|
|
2019-10-18 16:01:32 +00:00
|
|
|
{% include "apps/openedx/settings/partials/common_lms.py" %}
|
2018-12-07 18:30:30 +00:00
|
|
|
|
2019-03-25 14:41:17 +00:00
|
|
|
# Setup correct webpack configuration file for development
|
2019-05-05 09:45:24 +00:00
|
|
|
WEBPACK_CONFIG_PATH = "webpack.dev.config.js"
|
2019-10-18 16:01:12 +00:00
|
|
|
|
2019-12-24 16:22:12 +00:00
|
|
|
SESSION_COOKIE_DOMAIN = ".{{ LMS_HOST|common_domain(CMS_HOST) }}"
|
|
|
|
|
2020-08-16 09:34:00 +00:00
|
|
|
LMS_BASE = "{{ LMS_HOST}}:8000"
|
|
|
|
LMS_ROOT_URL = "http://{}".format(LMS_BASE)
|
|
|
|
LMS_INTERNAL_ROOT_URL = LMS_ROOT_URL
|
|
|
|
SITE_NAME = LMS_BASE
|
2019-12-24 16:22:12 +00:00
|
|
|
CMS_BASE = "{{ CMS_HOST}}:8001"
|
|
|
|
CMS_ROOT_URL = "http://{}".format(CMS_BASE)
|
|
|
|
LOGIN_REDIRECT_WHITELIST.append(CMS_BASE)
|
|
|
|
|
2021-10-18 09:43:40 +00:00
|
|
|
# CMS authentication
|
|
|
|
IDA_LOGOUT_URI_LIST.append("http://{{ CMS_HOST }}:8001/complete/logout")
|
|
|
|
|
2019-12-24 16:22:12 +00:00
|
|
|
FEATURES['ENABLE_COURSEWARE_MICROFRONTEND'] = False
|
|
|
|
|
|
|
|
LOGGING["loggers"]["oauth2_provider"] = {
|
|
|
|
"handlers": ["console"],
|
|
|
|
"level": "DEBUG"
|
|
|
|
}
|
|
|
|
|
2020-04-15 21:50:56 +00:00
|
|
|
{{ patch("openedx-development-settings") }}
|
2019-10-18 16:01:12 +00:00
|
|
|
{{ patch("openedx-lms-development-settings") }}
|