For a production environment (DEBUG=False), replaces original path
    created by Django's {% static %} template tag with relevant path from
    our mapping.

def production_url(path, original):
    """
    For a production environment (DEBUG=False), replaces original path
    created by Django's {% static %} template tag with relevant path from
    our mapping.
    """
    mapping = _get_mapping()
    if mapping:
        if path in mapping:
            return original.replace(path, mapping[path])
        return original
    else:
        return dev_url(original)