# Path: mezzanine/utils/importing.py
# def import_dotted_path(path):
#     """
#     Takes a dotted path to a member name in a module, and returns
#     the member after importing it.
#     """
#     try:
#         module_path, member_name = path.rsplit(".", 1)
#         module = import_module(module_path)
#         return getattr(module, member_name)
#     except (ValueError, ImportError, AttributeError) as e:
#         raise ImportError(f"Could not import the name: {path}: {e}")


import warnings
from django.conf import settings
from django.contrib.auth import get_user_model as django_get_user_model
from django.core.exceptions import ImproperlyConfigured
from django.db.models import Field, Model
from django.utils.html import format_html
from mezzanine.utils.importing import import_dotted_path
    from mezzanine.conf import settings
        from mezzanine.conf import settings
        from mezzanine.core.templatetags.mezzanine_tags import thumbnail




def get_user_model():
    warnings.warn(
        "Mezzanine's get_user_model() is deprecated and will be removed in a "
        "future version. Replace all uses of this function with Django's "
        "django.contrib.auth.get_user_model().",
        DeprecationWarning,
    )

# Path: mezzanine/utils/importing.py
# def import_dotted_path(path):
#     """
#     Takes a dotted path to a member name in a module, and returns
#     the member after importing it.
#     """
#     try:
#         module_path, member_name = path.rsplit(".", 1)
#         module = import_module(module_path)
#         return getattr(module, member_name)
#     except (ValueError, ImportError, AttributeError) as e:
#         raise ImportError(f"Could not import the name: {path}: {e}")


# Path: mezzanine/utils/models.py
import warnings
from django.conf import settings
from django.contrib.auth import get_user_model as django_get_user_model
from django.core.exceptions import ImproperlyConfigured
from django.db.models import Field, Model
from django.utils.html import format_html
from mezzanine.utils.importing import import_dotted_path
    from mezzanine.conf import settings
        from mezzanine.conf import settings
        from mezzanine.core.templatetags.mezzanine_tags import thumbnail





def get_user_model():
    warnings.warn(
        "Mezzanine's get_user_model() is deprecated and will be removed in a "
        "future version. Replace all uses of this function with Django's "
        "django.contrib.auth.get_user_model().",
        DeprecationWarning,
    )

    return django_get_user_model()