def get_category_model():
    """
    Return the category model to use.

    This function reads the :ref:`FLUENT_BLOGS_CATEGORY_MODEL` setting to find the model.
    """
    app_label, model_name = appsettings.FLUENT_BLOGS_CATEGORY_MODEL.rsplit('.', 1)
    try:
        return apps.get_model(app_label, model_name)
    except Exception as e:  # ImportError/LookupError
        raise ImproperlyConfigured("Failed to import FLUENT_BLOGS_CATEGORY_MODEL '{0}': {1}".format(
            appsettings.FLUENT_BLOGS_CATEGORY_MODEL, str(e)
        ))
def get_category_model ( ) : app_label , model_name = appsettings . FLUENT_BLOGS_CATEGORY_MODEL . rsplit ( '.' , 1 ) try : return apps . get_model ( app_label , model_name ) except Exception as e : raise ImproperlyConfigured ( "Failed to import FLUENT_BLOGS_CATEGORY_MODEL '{0}': {1}" . format ( appsettings . FLUENT_BLOGS_CATEGORY_MODEL , str ( e ) ) )
Return the category model to use.

    This function reads the :ref:`FLUENT_BLOGS_CATEGORY_MODEL` setting to find the model.