EVOLUTION-MANAGER
Edit File: staticfiles.py
"""Utility functions for looking up static media URLs.""" from __future__ import unicode_literals from django.contrib.staticfiles.templatetags.staticfiles import static from django.utils import six from django.utils.functional import lazy #: Lazily look up a static media URL. #: #: This is used to reference static media URLs in a class attribute, in a #: global variable, or some other definition that would be evaluated upon #: loading the module. Calling #: :py:func:`~django.contrib.staticfiles.templatetags.staticfiles.static` #: will immediately perform a lookup, which may be too early in the startup #: sequence of the consuming application. By lazily referencing the URL, #: the lookup can be performed later when needed, and not on module load. #: #: Args: #: path (unicode): #: The static media path. #: #: Returns: #: django.utils.functional.__proxy__: #: A proxy that evaluates to the static media URL (as a unicode string). static_lazy = lazy(static, six.text_type)