|
20 | 20 |
|
21 | 21 | def plugin_settings(settings): |
22 | 22 | """ |
23 | | - Defines eox-core settings when app is used as a plugin to edx-platform. |
| 23 | + Defines eox-nelp settings when app is used as a plugin to edx-platform. |
24 | 24 | See: https://github.com/edx/edx-platform/blob/master/openedx/core/djangoapps/plugins/README.rst |
25 | 25 | """ |
26 | | - |
27 | | - settings.eox_nelp_ENABLE_STATICFILES_STORAGE = False |
28 | | - settings.eox_nelp_STATICFILES_STORAGE = "eox_nelp.storage.ProductionStorage" |
29 | | - settings.eox_nelp_LOAD_PERMISSIONS = True |
30 | | - settings.DATA_API_DEF_PAGE_SIZE = 1000 |
31 | | - settings.DATA_API_MAX_PAGE_SIZE = 5000 |
32 | | - |
33 | | - settings.eox_nelp_COURSE_MANAGEMENT_REQUEST_TIMEOUT = 1000 |
34 | | - settings.eox_nelp_USER_ENABLE_MULTI_TENANCY = True |
35 | | - settings.eox_nelp_USER_ORIGIN_SITE_SOURCES = ['fetch_from_unfiltered_table', ] |
36 | | - settings.eox_nelp_APPEND_LMS_MIDDLEWARE_CLASSES = False |
37 | | - settings.eox_nelp_ENABLE_UPDATE_USERS = True |
38 | | - settings.eox_nelp_USER_UPDATE_SAFE_FIELDS = ["is_active", "password", "fullname", "mailing_address", "year_of_birth", "gender", "level_of_education", "city", "country", "goals", "bio", "phone_number"] |
39 | | - settings.eox_nelp_BEARER_AUTHENTICATION = 'eox_nelp.edxapp_wrapper.backends.bearer_authentication_j_v1' |
40 | | - settings.eox_nelp_ASYNC_TASKS = [] |
41 | | - settings.eox_nelp_THIRD_PARTY_AUTH_BACKEND = 'eox_nelp.edxapp_wrapper.backends.third_party_auth_l_v1' |
42 | | - |
43 | | - if settings.eox_nelp_USER_ENABLE_MULTI_TENANCY: |
44 | | - settings.eox_nelp_USER_ORIGIN_SITE_SOURCES = [ |
45 | | - 'fetch_from_created_on_site_prop', |
46 | | - 'fetch_from_user_signup_source', |
47 | | - ] |
48 | | - |
49 | | - # Sentry Integration |
50 | | - settings.eox_nelp_SENTRY_INTEGRATION_DSN = None |
51 | | - |
52 | | - # The setting eox_nelp_SENTRY_IGNORED_ERRORS is a list of rules that defines which exceptions to ignore. |
53 | | - # An example below: |
54 | | - # eox_nelp_SENTRY_IGNORED_ERRORS = [ |
55 | | - # { |
56 | | - # "exc_class": "openedx.core.djangoapps.user_authn.exceptions.AuthFailedError", |
57 | | - # "exc_text": ["AuthFailedError.*Email or password is incorrect"] |
58 | | - # }, |
59 | | - # ] |
60 | | - # Every rule support only 2 keys for now: |
61 | | - # - exc_class: the path to the exception class we want to ignore. It can only be one |
62 | | - # - exc_text: a list of regex expressions to search on the last traceback frame text of the exception |
63 | | - |
64 | | - # In this example we have only one rule. We are ignoring AuthFailedError exceptions whose traceback text |
65 | | - # has a match with the regex provided in the exc_text unique element. If exc_text contains more than one |
66 | | - # regex, the exception is ignored if any of the regex matches the traceback text. |
67 | | - settings.eox_nelp_SENTRY_IGNORED_ERRORS = [] |
68 | | - settings.eox_nelp_SENTRY_ENVIRONMENT = None |
69 | | - |
| 26 | + settings.EOX_NELP_COURSE_CREATORS_BACKEND = 'eox_nelp.edxapp_wrapper.backends.course_creators_l_v1' |
70 | 27 | if find_spec('eox_audit_model') and EOX_AUDIT_MODEL_APP not in settings.INSTALLED_APPS: |
71 | 28 | settings.INSTALLED_APPS.append(EOX_AUDIT_MODEL_APP) |
0 commit comments