import os
import logging
from navconfig import (
    BASE_DIR
)
os.chdir(str(BASE_DIR))

### Global-Settings.
try:
    from settings.settings import * # pylint: disable=W0401,W0614
except (ImportError) as err:
    from settings import settings
    logging.error(f'Cannot loaded a settings Module {err}, module: {settings}')
    print(
        'Settings.py module is missing.'
        'Hint: Its recommended to use a settings/settings.py module to customize '
        ' NAV Configuration.'
    )

### User Local Settings
try:
    from settings.local_settings import * # pylint: disable=W0401,W0614
except (ImportError) as err:
    pass
