7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-27 17:03:29 +00:00
tutor/tutor/templates/apps/openedx/settings/lms/production.py
Régis Behmo e539f31504 Simplify common openedx settings management
Use "{% include %}" jinja directive instead of python "exec", which was
a bit weird.

Also, this sets the technical email for the studio, which was previous
set at "technical@example.com".
2019-10-17 10:22:04 +02:00

20 lines
461 B
Python

import os
from lms.envs.production import *
{% include "apps/openedx/settings/partials/common/lms.py" %}
ALLOWED_HOSTS = [
ENV_TOKENS.get("LMS_BASE"),
FEATURES["PREVIEW_LMS_BASE"],
"lms",
"127.0.0.1",
"localhost",
"preview.localhost",
]
# Required to display all courses on start page
SEARCH_SKIP_ENROLLMENT_START_DATE_FILTERING = True
# Allow insecure oauth2 for local interaction with local containers
OAUTH_ENFORCE_SECURE = False