7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-10 09:42:23 +00:00
tutor/tutor/templates/apps/openedx/settings/partials/common_cms.py
Alejandro Cardenas f6b7826520 fix: change studio url in IDA_LOGOUT_URI_LIST
fix: remove FRONTEND_LOGOUT_URL to use the default

docs: update CHANGELOG
2022-06-06 16:13:23 +02:00

26 lines
761 B
Python

{% include "apps/openedx/settings/partials/common_all.py" %}
######## Common CMS settings
STUDIO_NAME = u"{{ PLATFORM_NAME }} - Studio"
# Authentication
SOCIAL_AUTH_EDX_OAUTH2_SECRET = "{{ CMS_OAUTH2_SECRET }}"
SOCIAL_AUTH_EDX_OAUTH2_URL_ROOT = "http://lms:8000"
SOCIAL_AUTH_REDIRECT_IS_HTTPS = False # scheme is correctly included in redirect_uri
SESSION_COOKIE_NAME = "studio_session_id"
MAX_ASSET_UPLOAD_FILE_SIZE_IN_MB = 100
FRONTEND_LOGIN_URL = LMS_ROOT_URL + '/login'
FRONTEND_REGISTER_URL = LMS_ROOT_URL + '/register'
# Create folders if necessary
for folder in [LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE]:
if not os.path.exists(folder):
os.makedirs(folder)
{{ patch("openedx-cms-common-settings") }}
######## End of common CMS settings