fromdjango.appsimportAppConfigfromdjango.confimportsettingsclassThirdPartyAuthConfig(AppConfig):name='third_party_auth'verbose_name="Third-party authentication"defready(self):# To override the settings before loading social_django.ifsettings.FEATURES.get('ENABLE_THIRD_PARTY_AUTH',False):self._enable_third_party_auth()def_enable_third_party_auth(self):""" Enable the use of third_party_auth, which allows users to sign in to edX using other identity providers. For configuration details, see common/djangoapps/third_party_auth/settings.py. """fromthird_party_authimportsettingsasauth_settingsauth_settings.apply_settings(settings)