src/url_checks/checks.py
def _get_url_tree():
    """Get Root URL Configuration for project"""
    try:
        url_mod_dot_path = settings.ROOT_URLCONF
    except AttributeError:
        return (None, [MESSAGES.URLCONF_NOT_DEFINED()])
    try:
        url_mod = import_module(url_mod_dot_path)
    except AttributeError:
        return (None, [MESSAGES.URLCONF_WRONG_FORMAT()])
    except ModuleNotFoundError:
        return (None, [MESSAGES.URLCONF_NOT_FOUND()])
    try:
        return (url_mod.urlpatterns, None)
    except AttributeError:
        return (None, [MESSAGES.URLCONF_NO_PATTERNS()])
Get Root URL Configuration for project
Get Root URL Configuration for project
Get Root URL Configuration for project
def _get_url_tree():
    try:
        url_mod_dot_path = settings.ROOT_URLCONF
    except AttributeError:
        return (None, [MESSAGES.URLCONF_NOT_DEFINED()])
    try:
        url_mod = import_module(url_mod_dot_path)
    except AttributeError:
        return (None, [MESSAGES.URLCONF_WRONG_FORMAT()])
    except ModuleNotFoundError:
        return (None, [MESSAGES.URLCONF_NOT_FOUND()])
    try:
        return (url_mod.urlpatterns, None)
    except AttributeError:
        return (None, [MESSAGES.URLCONF_NO_PATTERNS()])
def _get_url_tree ( ) : try : url_mod_dot_path = settings . ROOT_URLCONF except AttributeError : return ( None , [ MESSAGES . URLCONF_NOT_DEFINED ( ) ] ) try : url_mod = import_module ( url_mod_dot_path ) except AttributeError : return ( None , [ MESSAGES . URLCONF_WRONG_FORMAT ( ) ] ) except ModuleNotFoundError : return ( None , [ MESSAGES . URLCONF_NOT_FOUND ( ) ] ) try : return ( url_mod . urlpatterns , None ) except AttributeError : return ( None , [ MESSAGES . URLCONF_NO_PATTERNS ( ) ] )
Get Root URL Configuration for project
Get Root URL Configuration for project
"""Get Root URL Configuration for project"""