core(minor): remove unused code
This commit is contained in:
parent
b1e4e32b83
commit
088b9592cd
|
@ -1,11 +1,5 @@
|
||||||
"""passbook core app config"""
|
"""passbook core app config"""
|
||||||
from importlib import import_module
|
|
||||||
|
|
||||||
from django.apps import AppConfig
|
from django.apps import AppConfig
|
||||||
from django.conf import settings
|
|
||||||
from structlog import get_logger
|
|
||||||
|
|
||||||
LOGGER = get_logger()
|
|
||||||
|
|
||||||
|
|
||||||
class PassbookCoreConfig(AppConfig):
|
class PassbookCoreConfig(AppConfig):
|
||||||
|
@ -15,11 +9,3 @@ class PassbookCoreConfig(AppConfig):
|
||||||
label = 'passbook_core'
|
label = 'passbook_core'
|
||||||
verbose_name = 'passbook Core'
|
verbose_name = 'passbook Core'
|
||||||
mountpoint = ''
|
mountpoint = ''
|
||||||
|
|
||||||
def ready(self):
|
|
||||||
for factors_to_load in settings.PASSBOOK_CORE_FACTORS:
|
|
||||||
try:
|
|
||||||
import_module(factors_to_load)
|
|
||||||
LOGGER.info("Loaded factor", factor_class=factors_to_load)
|
|
||||||
except ImportError as exc:
|
|
||||||
LOGGER.debug(exc)
|
|
||||||
|
|
Reference in New Issue