Untitled

                Never    
from django.conf import settings

@register.assignment_tag
def get_api_config():
    """Returns a tuple containing API url and auth credentials.

    These values vary depending on the current running environment.

    .. warning::
        .. deprecated:: 1.0.0

            This tag was moved to Django DIL Wrapper

    :Example:

    .. code-block:: html

       {% get_api_config as api_config %}

       <!-- Api url -->
       {{ api_config.0 }}

       <!-- Api username -->
       {{ api_config.1 }}

       <!-- Api password -->
       {{ api_config.2 }}

    """
    return (settings.DIL_URL, settings.DIL_BASIC_AUTH_USERNAME, settings.DIL_BASIC_AUTH_PASSWORD)

Raw Text