feat: improve edx-platform logging by silencing a few warnings

These warnings were occurring when launching a django shell ("shell"
command) or a development server ("runserver").
This commit is contained in:
Régis Behmo 2023-03-26 18:29:18 -04:00 committed by Régis Behmo
parent 586045143f
commit 6257c1c7ac
2 changed files with 6 additions and 0 deletions

View File

@ -1,2 +1,3 @@
- [Feature] Make it possible to import the demo course from a different git repository or version. (by @regisb)
- [Feature] Add a convenient `do print-edx-platform-setting` command to print the value of an edx-platform setting. (by @regisb)
- [Improvement] Improve edx-platform logging by silencing a couple deprecation warnings. (by @regisb)

View File

@ -143,6 +143,11 @@ warnings.filterwarnings("ignore", category=RemovedInDjango40Warning)
warnings.filterwarnings("ignore", category=RemovedInDjango41Warning)
warnings.filterwarnings("ignore", category=DeprecationWarning, module="lms.djangoapps.course_wiki.plugins.markdownedx.wiki_plugin")
warnings.filterwarnings("ignore", category=DeprecationWarning, module="wiki.plugins.links.wiki_plugin")
warnings.filterwarnings("ignore", category=DeprecationWarning, module="boto.plugin")
warnings.filterwarnings("ignore", category=DeprecationWarning, module="botocore.vendored.requests.packages.urllib3._collections")
warnings.filterwarnings("ignore", category=DeprecationWarning, module="storages.backends.s3boto")
warnings.filterwarnings("ignore", category=DeprecationWarning, module="openedx.core.types.admin")
SILENCED_SYSTEM_CHECKS = ["2_0.W001", "fields.W903"]
# Email
EMAIL_USE_SSL = {{ SMTP_USE_SSL }}